Jenkinsfile modified
This commit is contained in:
parent
ad03d1edf7
commit
06216201e2
|
@ -14,7 +14,7 @@ pipeline {
|
|||
script {
|
||||
env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-');
|
||||
env.GIT_COMMITTER_EMAIL = sh(
|
||||
script: "git --no-pager show -s --format='%ae'",
|
||||
script: 'git --no-pager show -s --format="%ae"',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
|
||||
|
@ -48,14 +48,14 @@ pipeline {
|
|||
steps {
|
||||
nodejs('node-lts') {
|
||||
withEnv(['NODE_ENV=']) {
|
||||
sh "npm install --no-audit"
|
||||
sh "gulp install"
|
||||
sh 'npm install --no-audit'
|
||||
sh 'gulp install'
|
||||
}
|
||||
sh "gulp build"
|
||||
sh 'gulp build'
|
||||
}
|
||||
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
|
||||
sh "docker-compose build --parallel"
|
||||
sh "docker-compose push"
|
||||
sh 'docker-compose build --parallel'
|
||||
sh 'docker-compose push'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
|
@ -69,8 +69,8 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
|
||||
sh "docker-compose pull"
|
||||
sh "docker-compose up -d"
|
||||
sh 'docker-compose pull'
|
||||
sh 'docker-compose up -d'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,8 +80,8 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
|
||||
sh "docker-compose pull"
|
||||
sh "docker-compose up -d"
|
||||
sh 'docker-compose pull'
|
||||
sh 'docker-compose up -d'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue