updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-06-01 15:20:36 +08:00
parent 54ed076efe
commit 77e85c88c5
2 changed files with 11 additions and 10 deletions

3
.gitignore vendored
View File

@@ -113,3 +113,6 @@ node_modules/
# .DS_Store
.DS_Store
.docks
.docs

18
Jenkinsfile vendored
View File

@@ -14,16 +14,14 @@ pipeline {
stages {
stage('Setup') {
steps {
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'
}
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') {