This repository has been archived on 2024-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
2020-01-16 10:07:20 +00:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
environment {
|
|
|
|
PROJECT_NAME = 'vn-vmware'
|
2020-01-16 15:57:37 +00:00
|
|
|
}
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'registry.verdnatura.es/vn-debuild'
|
|
|
|
registryUrl 'https://registry.verdnatura.es/'
|
|
|
|
registryCredentialsId 'docker-registry'
|
2021-11-02 13:32:03 +00:00
|
|
|
args '-v /mnt/appdata/reprepro:/reprepro'
|
2020-01-16 15:57:37 +00:00
|
|
|
}
|
2020-01-16 10:07:20 +00:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
2020-02-17 12:31:17 +00:00
|
|
|
setEnv()
|
2020-01-16 10:07:20 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-16 13:48:59 +00:00
|
|
|
stage('Deploy') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
2020-01-16 15:40:17 +00:00
|
|
|
sh 'debuild -us -uc -b'
|
2020-01-16 16:08:26 +00:00
|
|
|
sh 'vn-includedeb'
|
2020-01-16 10:07:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2020-02-17 12:31:17 +00:00
|
|
|
sendEmail()
|
2020-01-16 10:07:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|