Skip to content

Commit 084845b

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 70295ae commit 084845b

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
@@ -9,7 +9,13 @@ String distroCodename = ''
99
String ver = ''
1010

1111
properties([
12-
copyArtifactPermission('*')
12+
copyArtifactPermission('*'),
13+
buildBlocker(
14+
useBuildBlocker: true,
15+
blockLevel: 'GLOBAL',
16+
scanQueueFor: 'ALL',
17+
blockingJobs: 'RebulidDEBRepoByAnsible'
18+
)
1319
])
1420
node() {
1521
ansiColor('xterm') {
@@ -52,10 +58,6 @@ distributions.each {
5258
}
5359

5460
stage('Test ' + distribution) {
55-
waitUntil(initialRecurrencePeriod: 30000) {
56-
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()
57-
return !color.endsWith('_anime')
58-
}
5961
buildImage.inside {
6062
def debconf_debug = 0 //Set to "5" or "developer" to debug debconf
6163
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz; cd $WORKSPACE'

0 commit comments

Comments
 (0)