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 {
|
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-01 21:09:33 +00:00
|
|
|
|
2024-02-02 20:12:23 +00:00
|
|
|
stage('Deploy') {
|
|
|
|
when { branch 'master' }
|
2024-02-01 21:09:33 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|