Skip to content
Snippets Groups Projects
Commit 97194b54 authored by OZGCloud's avatar OZGCloud
Browse files

remove rollout

parent 54339677
No related branches found
No related tags found
No related merge requests found
...@@ -84,40 +84,19 @@ pipeline { ...@@ -84,40 +84,19 @@ pipeline {
} }
} }
} }
stage('Deploy Intelliform-Adapter') {
when {
anyOf {
branch 'master'
branch 'release'
}
} }
post {
steps { failure {
script {
FAILED_STAGE = env.STAGE_NAME
}
container("kubectl"){
script { script {
if (env.BRANCH_NAME == 'release') {
sh 'kubectl rollout restart deployment/if-adapter -n sh-land-test'
sh 'kubectl rollout status deployment/if-adapter -n sh-land-test'
}
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
sh 'kubectl rollout restart deployment/if-adapter -n sh-land' slackSend(color: "danger", message: "Intelliform-Adapter: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <${BLUE_OCEAN_URL}|${env.BUILD_NUMBER}>")
sh 'kubectl rollout status deployment/if-adapter -n sh-land'
}
}
}
} }
} }
} }
post { success {
failure {
script { script {
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
slackSend(color: "danger", message: "Intelliform-Adapter: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <${BLUE_OCEAN_URL}|${env.BUILD_NUMBER}>") slackSend(color: "good", message: "Intelliform-Adapter: Build Success. <https://kuby.ozg-sh.de/dashboard/c/c-czx7w/explorer/apps.deployment> Namspace: sh-land if-adapter -> Redeploy")
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment