Jenkins fixes
gitea/vn-vmware/master There was a failure building this commit
Details
gitea/vn-vmware/master There was a failure building this commit
Details
This commit is contained in:
parent
66f07e1241
commit
3631ac59ad
|
@ -23,20 +23,21 @@ pipeline {
|
||||||
sh 'printenv'
|
sh 'printenv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'docker run --rm -v jenkins_master:$JENKINS_HOME $IMAGE vn-debuild "$WORKSPACE"'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'registry.verdnatura.es/vn-debuild'
|
||||||
|
registryUrl 'https://registry.verdnatura.es/'
|
||||||
|
registryCredentialsId 'docker-registry'
|
||||||
|
args '-v jenkins_master:"$JENKINS_HOME" -v /mnt/storage/reprepro:/reprepro'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker run --rm -v jenkins_master:$JENKINS_HOME -v /mnt/storage/reprepro:/reprepro $IMAGE vn-include "$WORKSPACE"'
|
sh 'vn-debuild "$WORKSPACE"'
|
||||||
|
sh 'vn-include "$WORKSPACE"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue