Update and rename OldJenkinsfile to Jenkinsfile

This commit is contained in:
Andrew Pitt 2019-12-20 16:14:52 -05:00 committed by GitHub
parent 0f5fc7da54
commit 0911acd3b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,22 +41,6 @@ try {
} }
} }
} }
}
node('jenkins-slave-skopeo') {
stage('Clair Container Vulnerability Scan') {
sh "oc login -u $ocpUser -p $ocpPassword --insecure-skip-tls-verify https://api.cluster-ottawa-57ac.ottawa-57ac.example.opentlc.com:6443 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"
}
stage("Tag DEV") {
echo "Tag image to DEV"
openshift.withCluster() {
openshift.withProject('cicd') {
openshift.tag("${appName}:latest", "${appName}:dev")
}
}
}
stage("Deploy DEV") { stage("Deploy DEV") {
echo "Deploy to DEV." echo "Deploy to DEV."
openshift.withCluster() { openshift.withCluster() {
@ -68,14 +52,6 @@ try {
} }
} }
} }
stage("Tag for QA") {
echo "Tag to UAT"
openshift.withCluster() {
openshift.withProject('cicd') {
openshift.tag("${appName}:dev", "${appName}:uat")
}
}
}
stage("Deploy UAT") { stage("Deploy UAT") {
echo "Deploy to UAT." echo "Deploy to UAT."
openshift.withCluster() { openshift.withCluster() {