vn-asterisk/Jenkinsfile

37 lines
777 B
Groovy

#!/usr/bin/env groovy
pipeline {
environment {
PROJECT_NAME = 'vn-asterisk'
}
agent {
docker {
image 'registry.verdnatura.es/debuild:2.21.3-vn2'
registryUrl 'https://registry.verdnatura.es/'
registryCredentialsId 'docker-registry'
args '-v /mnt/appdata/reprepro:/reprepro'
}
}
stages {
stage('Checkout') {
steps {
setEnv()
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
sh 'debuild -us -uc -b'
sh 'vn-includedeb bullseye'
}
}
}
post {
unsuccessful {
sendEmail()
}
}
}