Skip to content

Commit 5697616

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 be69e34 commit 5697616

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
@@ -15,7 +15,13 @@ String vendor = 'vitexsoftware'
1515
//String distroFamily = ''
1616

1717
properties([
18-
copyArtifactPermission('*')
18+
copyArtifactPermission('*'),
19+
buildBlocker(
20+
useBuildBlocker: true,
21+
blockLevel: 'GLOBAL',
22+
scanQueueFor: 'ALL',
23+
blockingJobs: 'RebulidDEBRepoByAnsible'
24+
)
1925
])
2026
node() {
2127
ansiColor('xterm') {
@@ -67,10 +73,6 @@ distributions.each { distro ->
6773
}
6874

6975
stage('Test ' + distroName) {
70-
waitUntil(initialRecurrencePeriod: 30000) {
71-
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()
72-
return !color.endsWith('_anime')
73-
}
7476
buildImage.inside {
7577
def debconf_debug = 0 //Set to "5" or "developer" to debug debconf
7678
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz; cd $WORKSPACE'

0 commit comments

Comments
 (0)