mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
36 lines
879 B
Groovy
36 lines
879 B
Groovy
pipeline {
|
|
agent {
|
|
node {
|
|
label 'crawlab'
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Build Frontend') {
|
|
steps {
|
|
echo "Building frontend..."
|
|
sh "cd frontend"
|
|
sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/npm install"
|
|
sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/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') {
|
|
steps {
|
|
echo 'Testing..'
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
echo 'Deploying....'
|
|
}
|
|
}
|
|
}
|
|
} |