UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
container-scanning-pipeline
Commits
3f055b6d
Commit
3f055b6d
authored
Jun 10, 2019
by
matthewbach
Browse files
Merge branch 'add_testing_location' into 'master'
Add testing location See merge request
!18
parents
acda001b
c685b621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
Jenkinsfile
Jenkinsfile
+13
-2
No files found.
Jenkinsfile
View file @
3f055b6d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment