2024-01-28 19:44:03 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
2024-02-01 22:06:00 +00:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'rust:1.75.0-slim'
|
|
|
|
}
|
|
|
|
}
|
2024-01-28 19:44:03 +00:00
|
|
|
steps {
|
2024-02-01 21:15:37 +00:00
|
|
|
sh 'cargo build'
|
2024-02-01 21:09:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Test') {
|
2024-02-01 22:06:00 +00:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'rust:1.75.0-slim'
|
|
|
|
}
|
|
|
|
}
|
2024-02-01 21:09:33 +00:00
|
|
|
steps {
|
2024-02-01 21:15:37 +00:00
|
|
|
sh 'cargo test'
|
2024-01-28 19:44:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|