dnstp/.jenkins/jenkinsfile

36 lines
712 B
Plaintext

pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'rust:1.75.0-slim'
args '--entrypoint='
reuseNode true
}
}
steps {
sh 'cargo build'
}
}
stage('Test') {
agent {
docker {
image 'rust:1.75.0-slim'
args '--entrypoint='
reuseNode true
}
}
steps {
sh 'cargo test'
}
}
}
post {
always {
cleanWs()
}
}
}