From 6fb75bf189e3fb103b91ecf72b5e51d6478c7c7f Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Fri, 31 May 2019 18:26:08 +0800 Subject: [PATCH] updated Jenkinsfile --- Jenkinsfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9dad5c44..8e9d4f48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {