Skip to content

Commit 75214c3

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 12a11bc commit 75214c3

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[] distributions = [
1414
String vendor = 'vitexsoftware'
1515

1616
properties([
17-
copyArtifactPermission('*')
17+
copyArtifactPermission('*'),
18+
buildBlocker(
19+
useBuildBlocker: true,
20+
blockLevel: 'GLOBAL',
21+
scanQueueFor: 'ALL',
22+
blockingJobs: 'RebulidDEBRepoByAnsible'
23+
)
1824
])
1925
node() {
2026
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
7678
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz; cd $WORKSPACE'

0 commit comments

Comments
 (0)