mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update and rename OldJenkinsfile to Jenkinsfile
This commit is contained in:
parent
0f5fc7da54
commit
0911acd3b8
1 changed files with 0 additions and 24 deletions
24
OldJenkinsfile → Jenkinsfile
vendored
24
OldJenkinsfile → Jenkinsfile
vendored
|
@ -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") {
|
||||
echo "Deploy to DEV."
|
||||
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") {
|
||||
echo "Deploy to UAT."
|
||||
openshift.withCluster() {
|
Loading…
Reference in a new issue