using docker image for building

This commit is contained in:
Andy Pack 2024-02-01 22:06:00 +00:00
parent fcca086685
commit e101d4e403
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -3,12 +3,22 @@ pipeline {
stages {
stage('Build') {
agent {
docker {
image 'rust:1.75.0-slim'
}
}
steps {
sh 'cargo build'
}
}
stage('Test') {
agent {
docker {
image 'rust:1.75.0-slim'
}
}
steps {
sh 'cargo test'
}