Skip to content

Commit be69e34

Browse files
Vitexusclaude
andcommitted
fix: wait for RebulidDEBRepoByAnsible before apt test installation
Polls the Jenkins job color before entering the Test stage so apt-get does not hit the repository while it is being rebuilt by the Ansible republish job. Uses waitUntil instead of buildBlocker (plugin absent). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8bdc32b commit be69e34

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

debian/Jenkinsfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ String vendor = 'vitexsoftware'
1515
//String distroFamily = ''
1616

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

7569
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+
}
7674
buildImage.inside {
7775
def debconf_debug = 0 //Set to "5" or "developer" to debug debconf
7876
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz; cd $WORKSPACE'

0 commit comments

Comments
 (0)