dnstp/.jenkins/jenkinsfile

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-28 19:44:03 +00:00
pipeline {
2024-02-02 20:23:07 +00:00
agent any
2024-01-28 19:44:03 +00:00
stages {
2024-02-02 20:12:23 +00:00
// stage('Build') {
// agent {
// docker {
// image 'rust:1.75.0-slim'
// args '-u root'
// reuseNode true
// }
// }
// steps {
// sh 'cargo build'
// }
// }
//
// stage('Test') {
// agent {
// docker {
// image 'rust:1.75.0-slim'
// args '-u root'
// reuseNode true
// }
// }
// steps {
// sh 'cargo test'
// }
// }
2024-02-02 20:12:23 +00:00
stage('Deploy') {
when { branch 'master' }
steps {
2024-02-02 20:12:23 +00:00
script {
docker.withRegistry('https://registry.sarsoo.xyz', 'git-registry-creds')
{
docker.build("sarsoo/dnstp:latest").push()
}
}
2024-01-28 19:44:03 +00:00
}
}
}
post {
always {
cleanWs()
}
}
}