You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix debian/.debhelper conflicts in parallel builds
- Set unique DH_INTERNAL_BUILDDIR and TMPDIR for each parallel build
- Use BUILD_NUMBER, distro code, architecture, and EXECUTOR_NUMBER for uniqueness
- Add cleanup of temporary build directories
- Prevents 'Permission denied' errors when multiple containers access shared debian/.debhelper
- Applied to all Jenkinsfile variants: main, arch, external, serial, release
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
54
65
artifacts = sh (
55
66
script: "cat debian/files | awk '{print \$1}'",
@@ -99,6 +110,7 @@ distributions.each { distro ->
99
110
100
111
// Cleanup: remove any produced files named in debian/files
101
112
// Try both the dist location and any potential original locations referenced by debian/files
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
74
85
}
75
86
}
@@ -95,7 +106,13 @@ architectures.each {
95
106
}
96
107
stage('Copy artifacts '+ architecture +''+ distribution ) {
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
77
88
}
78
89
}
@@ -90,7 +101,13 @@ architectures.each {
90
101
}
91
102
stage('Copy artifacts '+ architecture +''+ distribution ) {
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
52
63
artifacts = sh (
53
64
script: "cat debian/files | awk '{print \$1}'",
@@ -81,6 +92,7 @@ distributions.each { distro ->
81
92
}
82
93
// Cleanup: remove any produced files named in debian/files
83
94
// Try both the dist location and any potential original locations referenced by debian/files
0 commit comments