Debian packaging: fix environment daily preparation
This commit is contained in:
parent
1c8d53788f
commit
b2f0a6c182
|
@ -12,7 +12,7 @@ pipeline {
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
// Execute pipeline every day at 7h30 to prepare docker images
|
// Execute pipeline every day at 7h30 to prepare docker images
|
||||||
cron(env.BRANCH_NAME == 'develop' ? '30 7 * * 1-5' : '')
|
cron('30 7 * * 1-5')
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -20,7 +20,6 @@ pipeline {
|
||||||
stage("Prepare build environment") {
|
stage("Prepare build environment") {
|
||||||
when {
|
when {
|
||||||
anyOf {
|
anyOf {
|
||||||
triggeredBy cause: "UserIdCause", detail: "wpetit"
|
|
||||||
triggeredBy 'TimerTrigger'
|
triggeredBy 'TimerTrigger'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,6 +112,7 @@ pipeline {
|
||||||
|
|
||||||
// On attend que les paquets soient disponibles
|
// On attend que les paquets soient disponibles
|
||||||
// sur Vulcain pour envoyer la notification de diffusion
|
// sur Vulcain pour envoyer la notification de diffusion
|
||||||
|
// si la distribution est spécifiée
|
||||||
waitForPackages(env.ref, result)
|
waitForPackages(env.ref, result)
|
||||||
|
|
||||||
// On liste l'ensemble des paquets construits
|
// On liste l'ensemble des paquets construits
|
||||||
|
@ -202,9 +202,10 @@ def findMatchingVMTemplate(String distrib) {
|
||||||
|
|
||||||
def waitForPackages(String tagRef, buildResults) {
|
def waitForPackages(String tagRef, buildResults) {
|
||||||
def packageVersion = tagRef.split('/')[3];
|
def packageVersion = tagRef.split('/')[3];
|
||||||
|
def packageDistrib = env.packageBranch.split('/')[2];
|
||||||
|
|
||||||
buildResults.each { r ->
|
buildResults.each { r ->
|
||||||
def distrib = "${r.distrib.split('-')[1]}-${r.env}"
|
def distrib = "${packageDistrib}-${r.env}"
|
||||||
|
|
||||||
r.packages.each { p ->
|
r.packages.each { p ->
|
||||||
def file = new File(p)
|
def file = new File(p)
|
||||||
|
|
Loading…
Reference in New Issue