updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-05-31 18:26:08 +08:00
parent 2a7ed719a3
commit 6fb75bf189

15
Jenkinsfile vendored
View File

@@ -2,9 +2,20 @@ pipeline {
agent any
stages {
stage('Build') {
stage('Build Frontend') {
steps {
echo "Git branch: ${env.GIT_BRANCH}"
echo "Building frontend..."
sh "cd frontend"
sh "yarn install"
sh "npm run build:prod"
}
}
stage('Build Backend') {
steps {
echo "Building backend..."
sh "cd ../crawlab"
sh "pyenv activate crawlab"
sh "pip install -r requirements.txt"
}
}
stage('Test') {