Update Jenkinsfile

This commit is contained in:
Andrew Pitt 2019-12-19 16:47:43 -05:00 committed by GitHub
parent b76bea18a4
commit 3bbff51c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
Jenkinsfile vendored
View file

@ -42,13 +42,9 @@ try {
} }
node('jenkins-slave-skopeo') { node('jenkins-slave-skopeo') {
stage('Clair Container Vulnerability Scan') { stage('Clair Container Vulnerability Scan') {
steps {
sh "#oc login -u $ocuser -p $ocpass --insecure-skip-tls-verify https://$ocp 2>&1"
sh 'skopeo --debug copy --src-creds="$(oc whoami)":"$(oc whoami -t)" --src-tls-verify=false --dest-tls-verify=false' + " --dest-creds=$quayUser:$quayPassword docker://docker-registry.default.svc:5000/cicd/spring-petclinic:latest docker://quay.io/$quayUser/spring-petclinic:latest" sh 'skopeo --debug copy --src-creds="$(oc whoami)":"$(oc whoami -t)" --src-tls-verify=false --dest-tls-verify=false' + " --dest-creds=$quayUser:$quayPassword docker://docker-registry.default.svc:5000/cicd/spring-petclinic:latest docker://quay.io/$quayUser/spring-petclinic:latest"
} }
}
stage("Tag DEV") { stage("Tag DEV") {
echo "Tag image to DEV" echo "Tag image to DEV"