Skip to content

Commit 470b134

Browse files
Vitexusclaude
andcommitted
fix: block build when RebulidDEBRepoByAnsible is running
Prevents test installation failures caused by apt-get hitting the repository while it is being rebuilt by the Ansible republish job. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2735a06 commit 470b134

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

debian/Jenkinsfile

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

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

2026
node {
@@ -69,10 +75,6 @@ distributions.each { distro ->
6975
}
7076

7177
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-
}
7678
buildImage.inside {
7779
def debconf_debug = 0
7880
sh """

0 commit comments

Comments
 (0)