From 232a073f43823c58309e11c7edaaadbb06573a4c Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 10:43:05 -0400 Subject: [PATCH 01/11] Added OSCAP stage to pipeline file --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0fde8aa..025a41f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,6 +29,28 @@ pipeline { stage('OpenSCAP Compliance Scan (TODO)') { steps { echo 'OpenSCAP Compliance Scan' + def remote = [:] + remote.name = "node" + remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" + remote.allowAnyHosts = true + + node { + withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { + remote.user = userName + remote.identityFile = identity + stage('SSH to OpenSCAP Node') { + sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" + sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" + sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" + sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true + sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) + archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' + } // stage + + } // withCredentials + } //node } // steps } // stage -- GitLab From cbbd65f331872961f7f8114bddb8a2f27b3f2304 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 10:45:56 -0400 Subject: [PATCH 02/11] adjusted spacing --- Jenkinsfile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 025a41f..c71dee5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,23 +34,22 @@ pipeline { remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" remote.allowAnyHosts = true - node { - withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { - remote.user = userName - remote.identityFile = identity + node { + withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { + remote.user = userName + remote.identityFile = identity stage('SSH to OpenSCAP Node') { - sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" - sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" - sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" - sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true - sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) - archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' - } // stage - - } // withCredentials - } //node + sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" + sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" + sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" + sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true + sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) + archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' + } // stage + } // withCredentials + } //node } // steps } // stage -- GitLab From 1b82aaed43ced94fdd470baf4a82093592c08ce3 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 10:49:52 -0400 Subject: [PATCH 03/11] moved declarations outside of step --- Jenkinsfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c71dee5..71983a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,13 +27,12 @@ pipeline { } // stage stage('OpenSCAP Compliance Scan (TODO)') { - steps { - echo 'OpenSCAP Compliance Scan' - def remote = [:] - remote.name = "node" - remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" - remote.allowAnyHosts = true - + echo 'OpenSCAP Compliance Scan' + def remote = [:] + remote.name = "node" + remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" + remote.allowAnyHosts = true + steps { node { withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { remote.user = userName -- GitLab From 92b76f619c837ca470031395d6985520ceba0cf6 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 10:51:34 -0400 Subject: [PATCH 04/11] moved echo back into the step --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 71983a6..b55ac2f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,12 +27,13 @@ pipeline { } // stage stage('OpenSCAP Compliance Scan (TODO)') { - echo 'OpenSCAP Compliance Scan' + def remote = [:] remote.name = "node" remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" remote.allowAnyHosts = true steps { + echo 'OpenSCAP Compliance Scan' node { withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { remote.user = userName -- GitLab From 4823818059110e93a2814877999521501e454d63 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 10:59:19 -0400 Subject: [PATCH 05/11] Created a script step to wrap ssh commands --- Jenkinsfile | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b55ac2f..29ea520 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,27 +26,28 @@ pipeline { } // steps } // stage - stage('OpenSCAP Compliance Scan (TODO)') { - - def remote = [:] - remote.name = "node" - remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" - remote.allowAnyHosts = true + stage('OpenSCAP Compliance Scan (TODO)') { steps { echo 'OpenSCAP Compliance Scan' - node { - withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { - remote.user = userName - remote.identityFile = identity - stage('SSH to OpenSCAP Node') { - sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" - sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" - sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" - sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true - sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) - archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' + script { + def remote = [:] + remote.name = "node" + remote.host = "ec2-52-222-64-188.us-gov-west-1.compute.amazonaws.com" + remote.allowAnyHosts = true + node { + withCredentials([sshUserPrivateKey(credentialsId: 'oscap', keyFileVariable: 'identity', usernameVariable: 'userName')]) { + remote.user = userName + remote.identityFile = identity + stage('SSH to OpenSCAP Node') { + sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" + sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" + sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" + sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true + sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) + archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' + } // script } // stage } // withCredentials } //node -- GitLab From aa721d4aeac1abaece780898edc6bb1dee4713e0 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 11:56:28 -0400 Subject: [PATCH 06/11] testing ssheget changes --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 29ea520..ac7f12b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,8 +42,8 @@ pipeline { sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" - sshGet remote: remote, from: "/home/ec2-user/report.html", into: 'openscap-compliance-report.html', override: true - sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: 'openscap-cve-report.html', override: true + sshGet remote: remote, from: "/home/ec2-user/report.html", into: '', override: true + sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '', override: true publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' -- GitLab From 5831d84c10df6de7110b7cdb2d010c504146e72a Mon Sep 17 00:00:00 2001 From: keegan reap Date: Wed, 24 Apr 2019 16:05:01 +0000 Subject: [PATCH 07/11] Update Jenkinsfile - SFTP --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ac7f12b..32a2575 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,8 +42,8 @@ pipeline { sshCommand remote: remote, command: "sudo docker pull nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest" sshCommand remote: remote, command: "sudo oscap-docker image nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel7-disa --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml" sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" - sshGet remote: remote, from: "/home/ec2-user/report.html", into: '', override: true - sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '', override: true + sshGet remote: remote, from: "/home/ec2-user/report.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html', override: true + sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html', override: true publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' -- GitLab From 9adf8c7f7f1ed862875bbff1299a1c21b01dbc6d Mon Sep 17 00:00:00 2001 From: keegan reap Date: Wed, 24 Apr 2019 16:10:04 +0000 Subject: [PATCH 08/11] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 32a2575..ebf2390 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,8 +44,8 @@ pipeline { sshCommand remote: remote, command: "sudo oscap-docker image-cve nexus-docker.us-gov-west-1.compute.internal/up/openjdk:latest --report report-cve.html" sshGet remote: remote, from: "/home/ec2-user/report.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html', override: true sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html', override: true - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) - publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: './', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) + publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' } // script } // stage -- GitLab From 5aca77c72d0eaef92a474c21e6036bcfcd153176 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 12:31:48 -0400 Subject: [PATCH 09/11] added direct path to archive --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ebf2390..062af78 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html', override: true publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) - archiveArtifacts 'openscap-compliance-report.html,openscap-cve-report.html' + archiveArtifacts '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html,/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html' } // script } // stage } // withCredentials -- GitLab From fdc3da01677cfdd97d94a8d5f7fb6e05455fbfe1 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 12:34:25 -0400 Subject: [PATCH 10/11] archive one file at a time --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 062af78..27f31ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html', override: true publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) - archiveArtifacts '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html,/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html' + archiveArtifacts '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html' } // script } // stage } // withCredentials -- GitLab From 7518dd6bb29f44ed517118e25eb5a440883d1437 Mon Sep 17 00:00:00 2001 From: Terrence Cort Date: Wed, 24 Apr 2019 12:45:07 -0400 Subject: [PATCH 11/11] comment out archive --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 27f31ca..b99af36 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { sshGet remote: remote, from: "/home/ec2-user/report-cve.html", into: '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-cve-report.html', override: true publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-compliance-report.html', reportName: 'OpenSCAP Compliance Report', reportTitles: 'OpenSCAP Compliance Report']) publishHTML([alwaysLinkToLastBuild: false, keepAll: false, reportDir: '/var/lib/jenkins/jobs/oscap-test/workspace/', reportFiles: 'openscap-cve-report.html', reportName: 'OpenSCAP Vulnerability Report', reportTitles: 'OpenSCAP Vulnerability Report']) - archiveArtifacts '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html' + // archiveArtifacts '/var/lib/jenkins/jobs/oscap-test/workspace/openscap-compliance-report.html' } // script } // stage } // withCredentials -- GitLab