mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated Jenkinsfile
This commit is contained in:
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user