UNCLASSIFIED

Commit 3f055b6d authored by matthewbach's avatar matthewbach
Browse files

Merge branch 'add_testing_location' into 'master'

Add testing location

See merge request !18
parents acda001b c685b621
......@@ -62,6 +62,10 @@ pipeline {
parameters {
choice(choices : ['Test','Production'],
description: "Is this a test run or for actual production?",
name: 'testOrProduction')
choice(choices : ['All','OpenSCAP','Twistlock','Anchore'],
description: "Which tools to run?",
name: 'toolsToRun')
......@@ -91,8 +95,12 @@ pipeline {
def repo_image_only = REPO_NAME.split("/").last()
ROOT = "container-scan-reports/${VENDOR_PRODUCT}/${repo_image_only}"
if (testOrProduction == "Test") {
ROOT = "testing/container-scan-reports/${VENDOR_PRODUCT}/${repo_image_only}"
} else {
ROOT = "container-scan-reports/${VENDOR_PRODUCT}/${repo_image_only}"
}
echo "ROOT=${ROOT}"
ROOT_FOR_REPO_IMAGE = "${ROOT}/${IMAGE_TAG}"
BASIC_PATH_FOR_DATA = "${ROOT_FOR_REPO_IMAGE}/${SPECIFIC_FOLDER_FOR_RUN}"
......@@ -625,6 +633,9 @@ pipeline {
bucket: "${S3_REPORT_BUCKET}",
path:"${ROOT}/")
//record this as the latest in DynamoDB
} //withAWS
} //script
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment