Jenkinsfile fixes
This commit is contained in:
parent
2e0b5717ed
commit
133c32b4ea
|
@ -7,7 +7,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
REGISTRY = 'registry.verdnatura.es'
|
REGISTRY = 'registry.verdnatura.es'
|
||||||
DOCKER_HOST_1 = 'tcp://vch1.verdnatura.es:2376'
|
DOCKER_HOST_1 = 'tcp://vch1.verdnatura.es:2376'
|
||||||
DOCKER_HOST_2 = 'tcp://vch1.verdnatura.es:2376'
|
DOCKER_HOST_2 = 'tcp://vch2.verdnatura.es:2376'
|
||||||
TAG = "${env.BRANCH_NAME}"
|
TAG = "${env.BRANCH_NAME}"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
@ -47,23 +47,16 @@ pipeline {
|
||||||
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
|
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Install') {
|
|
||||||
environment {
|
|
||||||
NODE_ENV = ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
nodejs('node-lts') {
|
|
||||||
sh "npm install --no-audit"
|
|
||||||
sh "gulp install"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
environment {
|
environment {
|
||||||
CREDS = credentials('docker-registry')
|
CREDS = credentials('docker-registry')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
nodejs('node-lts') {
|
nodejs('node-lts') {
|
||||||
|
withEnv(['NODE_ENV=']) {
|
||||||
|
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 login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
|
||||||
|
|
Loading…
Reference in New Issue