Skip to content

Commit f9e5fe8

Browse files
Vitexusclaude
andcommitted
fix: wait for RebulidDEBRepoByAnsible before apt test installation
Polls the Jenkins job color before entering the Test stage so apt-get does not hit the repository while it is being rebuilt by the Ansible republish job. Uses waitUntil instead of buildBlocker (plugin absent). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0327cf5 commit f9e5fe8

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

debian/Jenkinsfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ String vendor = 'vitexsoftware'
1414
String imagePrefix = 'multiflexi-'
1515

1616
properties([
17-
copyArtifactPermission('*'),
18-
buildBlocker(
19-
useBuildBlocker: true,
20-
blockLevel: 'GLOBAL',
21-
scanQueueFor: 'ALL',
22-
blockingJobs: 'RebulidDEBRepoByAnsible'
23-
)
17+
copyArtifactPermission('*')
2418
])
2519

2620
node {
@@ -75,6 +69,10 @@ distributions.each { distro ->
7569
}
7670

7771
stage("Test ${distro}") {
72+
waitUntil(initialRecurrencePeriod: 30000) {
73+
def color = sh(script: "curl -sf 'https://jenkins.proxy.spojenet.cz/job/RebulidDEBRepoByAnsible/api/json?tree=color' 2>/dev/null | grep -o '"color":"[^"]*"' | cut -d'"' -f4 || echo 'blue'", returnStdout: true).trim()
74+
return !color.endsWith('_anime')
75+
}
7876
buildImage.inside {
7977
def debconf_debug = 0
8078
sh """

0 commit comments

Comments
 (0)