Switch to rust docker image
This commit is contained in:
parent
821157ee2a
commit
f089e30b0a
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -3,12 +3,20 @@ pipeline {
|
|||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
agent {
|
||||||
|
docker { image 'rust:alpine' }
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'cargo b --release'
|
sh 'cargo b --release'
|
||||||
archiveArtifacts artifacts: '/target/school_app_api', fingerprint: true
|
archiveArtifacts artifacts: '/target/school_app_api', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
|
agent {
|
||||||
|
docker { image 'rust:alpine' }
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'cargo test'
|
sh 'cargo test'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user