jenkinsfile
This commit is contained in:
parent
abd9f789d3
commit
5341628c0c
@ -3,17 +3,24 @@ pipeline {
|
||||
|
||||
stages {
|
||||
stage('Build backend') {
|
||||
agent {
|
||||
docker {
|
||||
image 'rust:buster'
|
||||
args '-v /srv/jenkins/.cargo:/root/.cargo'
|
||||
// reuseNode true
|
||||
}
|
||||
}
|
||||
|
||||
steps {
|
||||
sh "whoami"
|
||||
sh "echo $PATH"
|
||||
sh 'export PATH="$PATH:/var/lib/jenkins/.local/share:/var/lib/jenkins/.cargo/bin/"'
|
||||
sh "echo $PATH"
|
||||
sh "which cargo"
|
||||
sh "sh cargo --version"
|
||||
sh "cd ${env.WORKSPACE}/backend"
|
||||
sh "cargo build --release"
|
||||
}
|
||||
}
|
||||
stage('Build frontend') {
|
||||
agent {
|
||||
docker { image 'node:18.18.0-alpine3.18' }
|
||||
}
|
||||
steps {
|
||||
sh "cd ${env.WORKSPACE}/frontend"
|
||||
sh "pnpm i"
|
||||
|
Loading…
Reference in New Issue
Block a user