Skip to content

Commit 4d3d795

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 207aea3 commit 4d3d795

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
@@ -8,7 +8,13 @@ String vendor = 'vitexsoftware'
88
//String distroFamily = ''
99

1010
properties([
11-
copyArtifactPermission('*')
11+
copyArtifactPermission('*'),
12+
buildBlocker(
13+
useBuildBlocker: true,
14+
blockLevel: 'GLOBAL',
15+
scanQueueFor: 'ALL',
16+
blockingJobs: 'RebulidDEBRepoByAnsible'
17+
)
1218
])
1319
node() {
1420
ansiColor('xterm') {
@@ -60,10 +66,6 @@ distributions.each { distro ->
6066
}
6167

6268
stage('Test ' + distroName) {
63-
waitUntil(initialRecurrencePeriod: 30000) {
64-
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()
65-
return !color.endsWith('_anime')
66-
}
6769
buildImage.inside {
6870
def debconf_debug = 0 //Set to "5" or "developer" to debug debconf
6971
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz; cd $WORKSPACE'

0 commit comments

Comments
 (0)