diff --git a/Jenkinsfile b/Jenkinsfile index bde1626..645e435 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,29 +46,24 @@ pipeline { } } } */ -/* stage('Build') { - when { anyOf { - branch 'test' - branch 'master' - }} - environment { - CREDENTIALS = credentials('docker-registry') - } - steps { - nodejs('node-v14') { - sh 'gulp build' - } - - dockerBuild() - } - } */ - stage('Deploy') { + stage('Build') { when { anyOf { // branch 'test' branch 'master' }} environment { CREDENTIALS = credentials('docker-registry') + } + steps { + dockerBuild() + } + } + stage('Deploy') { + when { anyOf { + // branch 'test' + branch 'master' + }} + environment { DOCKER_HOST = "${env.SWARM_HOST}" } steps {