#!/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() } } }