Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-02-17 18:35:29 +01:00
parent 9346c7adc3
commit 3a56044634
2 changed files with 14 additions and 14 deletions

26
Jenkinsfile vendored
View File

@ -28,9 +28,6 @@ pipeline {
case 'test':
env.PORT = 5001
break
case 'test':
env.PORT = 5000
break
}
switch (env.BRANCH_NAME) {
case 'master':
@ -39,7 +36,7 @@ pipeline {
case 'test':
env.NODE_ENV = 'test'
break
case 'dev':
default:
env.NODE_ENV = 'development'
break
}
@ -59,9 +56,10 @@ pipeline {
}
}
stage('Test') {
when {
branch 'dev'
}
when { not { anyOf {
branch 'test'
branch 'master'
}}}
environment {
NODE_ENV = ""
FIREFOX_BIN = "/opt/firefox/firefox-bin"
@ -75,9 +73,10 @@ pipeline {
}
}
stage('Build') {
when {
not { branch 'dev' }
}
when { anyOf {
branch 'test'
branch 'master'
}}
environment {
CREDS = credentials('docker-registry')
}
@ -92,9 +91,10 @@ pipeline {
}
}
stage('Deploy') {
when {
not { branch 'dev' }
}
when { anyOf {
branch 'test'
branch 'master'
}}
environment {
DOCKER_TLS_VERIFY = 1
}

View File

@ -3,4 +3,4 @@ import './routes';
import './components';
import './styles';
// XXX: Pull request: Test 1
// XXX: Pull request: Test 2