dnstp/.jenkins/jenkinsfile

36 lines
712 B
Plaintext
Raw Normal View History

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:41:34 +00:00
args '--entrypoint='
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'
}
}
stage('Test') {
2024-02-01 22:06:00 +00:00
agent {
docker {
image 'rust:1.75.0-slim'
2024-02-01 22:41:34 +00:00
args '--entrypoint='
reuseNode true
2024-02-01 22:06:00 +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()
}
}
}