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
ci: update Jenkinsfile.release to use multiflexi build images
Use multiflexi-<distroFamily>:<distroCode> Docker images instead of
multiflexi-<distroCode>:latest for builds with repo.multiflexi.eu.
Add workspace cleanup to prevent permission issues.
Co-Authored-By: Oz <oz-agent@warp.dev>
Copy file name to clipboardExpand all lines: debian/Jenkinsfile.release
+12-13Lines changed: 12 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
#!groovy
2
2
3
-
// Current version of this Pipeline https://raw.githubusercontent.com/VitexSoftware/multiflexi-buildimages/refs/heads/main/Test/multiflexi-halloworld/Jenkinsfile
buildVer = version +'.'+ env.BUILD_NUMBER+'~'+ distroCode
46
46
}
47
47
stage('Build '+ distroName) {
48
-
buildImage.inside {
48
+
buildImage.inside('--ipc=host') {
49
49
sh 'dch -b -v '+ buildVer +' "'+ env.BUILD_TAG+'"'
50
50
sh 'sudo apt-get update --allow-releaseinfo-change'
51
-
sh 'sudo chown jenkins:jenkins ..'
52
-
sh 'debuild-pbuilder -i -us -uc -b'
51
+
sh 'sudo chown -R jenkins:jenkins . ..'
52
+
sh 'sudo rm -rf debian/$(dpkg-parsechangelog --show-field Source)/ debian/.debhelper/ debian/tmp/'
53
+
sh 'debuild-pbuilder -r"sudo -E" -i -us -uc -b'
53
54
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'
0 commit comments