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:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user