2020-01-17 08:14:24 +00:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
environment {
|
|
|
|
PROJECT_NAME = 'vn-asterisk'
|
|
|
|
}
|
|
|
|
agent {
|
|
|
|
docker {
|
2022-10-15 11:28:18 +00:00
|
|
|
image 'registry.verdnatura.es/debuild:2.21.3-vn2'
|
2020-01-17 08:14:24 +00:00
|
|
|
registryUrl 'https://registry.verdnatura.es/'
|
|
|
|
registryCredentialsId 'docker-registry'
|
2022-10-15 11:28:18 +00:00
|
|
|
args '-v /mnt/appdata/reprepro:/reprepro'
|
2020-01-17 08:14:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
2022-10-15 12:29:05 +00:00
|
|
|
setEnv()
|
2020-01-17 08:14:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'debuild -us -uc -b'
|
2022-10-15 11:50:08 +00:00
|
|
|
sh 'vn-includedeb bullseye'
|
2020-01-17 08:14:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
2022-10-15 12:29:05 +00:00
|
|
|
unsuccessful {
|
|
|
|
sendEmail()
|
2020-01-17 08:14:24 +00:00
|
|
|
}
|
|
|
|
}
|
2022-10-15 12:29:05 +00:00
|
|
|
}
|