diff --git a/Jenkinsfile b/Jenkinsfile index 114114e8bdc1bab051aa2be164d4b4ab91631fdf..4aff3daaf00c6b67743fd42ae9f6a47c561c0fc4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -84,6 +84,34 @@ pipeline { } } } + + stage('Deploy Intelliform-Adapter') { + when { + anyOf { + branch 'master' + branch 'release' + } + } + + steps { + script { + FAILED_STAGE = env.STAGE_NAME + } + container("kubectl"){ + 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') { + sh 'kubectl rollout restart deployment/if-adapter -n sh-land' + sh 'kubectl rollout status deployment/if-adapter -n sh-land' + } + } + } + } + } } post { failure { @@ -93,12 +121,5 @@ pipeline { } } } - success { - script { - if (env.BRANCH_NAME == 'master') { - 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") - } - } - } } } \ No newline at end of file