2024-01-28 19:44:03 +00:00
|
|
|
pipeline {
|
2024-02-01 22:26:09 +00:00
|
|
|
agent none
|
2024-01-28 19:44:03 +00:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
2024-02-01 22:06:00 +00:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'rust:1.75.0-slim'
|
2024-02-01 22:57:04 +00:00
|
|
|
args '-u root'
|
2024-02-01 22:41:34 +00:00
|
|
|
reuseNode true
|
2024-02-01 22:06:00 +00:00
|
|
|
}
|
|
|
|
}
|
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 22:57:04 +00:00
|
|
|
args '-u root'
|
2024-02-01 22:41:34 +00:00
|
|
|
reuseNode true
|
2024-02-01 22:06:00 +00:00
|
|
|
}
|
|
|
|
}
|
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()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|