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.
vn-vmware/Jenkinsfile

36 lines
751 B
Groovy

#!/usr/bin/env groovy
pipeline {
environment {
PROJECT_NAME = 'vn-vmware'
}
agent {
docker {
image 'registry.verdnatura.es/vn-debuild'
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'
}
}
}
post {
always {
sendEmail()
}
}
}