31 lines
615 B
Groovy
31 lines
615 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
agent {
|
|
docker { image 'rust:alpine' }
|
|
}
|
|
|
|
steps {
|
|
sh 'cargo b --release'
|
|
archiveArtifacts artifacts: '/target/school_app_api', fingerprint: true
|
|
}
|
|
}
|
|
stage('Test') {
|
|
agent {
|
|
docker { image 'rust:alpine' }
|
|
}
|
|
|
|
steps {
|
|
sh 'cargo test'
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
echo 'Deploying....'
|
|
}
|
|
}
|
|
}
|
|
}
|