Added build step
gitea/smart-tag/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-12-15 11:24:34 +01:00
parent ad9660ca5f
commit ad5c0626d7
1 changed files with 12 additions and 17 deletions

29
Jenkinsfile vendored
View File

@ -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 {