Skip to content

Commit b7f9c78

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 1a9b5c5 commit b7f9c78

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') {
@@ -59,10 +65,6 @@ distributions.each { distro ->
5965
}
6066

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

0 commit comments

Comments
 (0)