diff --git a/Jenkinsfile b/Jenkinsfile index 17b312c..a082dbf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,6 +37,21 @@ pipeline { } steps { sh 'vn-debuild "$WORKSPACE"' + } + } + stage('Deploy') { + when { + branch 'master' + } + agent { + docker { + image 'registry.verdnatura.es/vn-debuild' + registryUrl 'https://registry.verdnatura.es/' + registryCredentialsId 'docker-registry' + args '-u www-data -v jenkins_master:"$JENKINS_HOME" -v /mnt/storage/reprepro:/reprepro' + } + } + steps { sh 'vn-include "$WORKSPACE"' } }