pipeline { agent { label 'node2' } tools { nodejs 'node' } stages { stage('notify') { steps { script { slack_send_start() } } } stage('build') { steps { git branch: 'staging', credentialsId: 'tgsiegel-gitlab-ssh', url: 'git@gitlab.cs.umd.edu:dawn/go-backend/dawn-email.git' sh ''' sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-email:latest . -f Dockerfile sudo docker push docker.registry.dawn.int:5000/dawn/dawn-email:latest ''' } } stage('deploy') { steps { upgradeKubernetes('dawn-email', 'staging') } } } post { success { script { slack_send_success() } } failure { script { slack_send_failure() } } } }