updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-06-01 15:23:54 +08:00
parent 0251ab7aa6
commit fcbce534cb

18
Jenkinsfile vendored
View File

@@ -14,14 +14,16 @@ pipeline {
stages {
stage('Setup') {
echo "Running Setup..."
// sh '. /home/yeqing/.profile'
if (env.GIT_BRANCH == 'develop') {
MODE = 'test'
} else if (env.GIT_BRANCH == 'master') {
MODE = 'production'
} else {
MODE = 'test'
step {
echo "Running Setup..."
// sh '. /home/yeqing/.profile'
if (env.GIT_BRANCH == 'develop') {
MODE = 'test'
} else if (env.GIT_BRANCH == 'master') {
MODE = 'production'
} else {
MODE = 'test'
}
}
}
stage('Build Frontend') {