mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated Jenkinsfile
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -6,12 +6,20 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Setup') {
|
||||
steps {
|
||||
"Running Setup..."
|
||||
sh 'source /home/yeqing/.profile'
|
||||
}
|
||||
}
|
||||
stage('Build Frontend') {
|
||||
steps {
|
||||
echo "Building frontend..."
|
||||
sh "cd frontend"
|
||||
sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/node /home/yeqing/.nvm/versions/node/v8.12.0/bin/npm install"
|
||||
sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/node /home/yeqing/.nvm/versions/node/v8.12.0/bin/npm run build:prod"
|
||||
sh "yarn install"
|
||||
sh "npm run build:prod"
|
||||
sh "#/home/yeqing/.nvm/versions/node/v8.12.0/bin/node /home/yeqing/.nvm/versions/node/v8.12.0/bin/npm install"
|
||||
sh "#/home/yeqing/.nvm/versions/node/v8.12.0/bin/node /home/yeqing/.nvm/versions/node/v8.12.0/bin/npm run build:prod"
|
||||
}
|
||||
}
|
||||
stage('Build Backend') {
|
||||
|
||||
Reference in New Issue
Block a user