Skip to content

Commit 88c4822

Browse files
committed
Jenkinsfile.release update
1 parent e1b5ec8 commit 88c4822

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

debian/Jenkinsfile.release

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!groovy
22

3+
// Current version of this Pipeline https://raw.githubusercontent.com/VitexSoftware/multiflexi-buildimages/refs/heads/main/Test/multiflexi-halloworld/Jenkinsfile
4+
35
String[] distributions = ['debian:bookworm', 'debian:trixie', 'debian:forky', 'ubuntu:jammy', 'ubuntu:noble']
46

57
String vendor = 'vitexsoftware'
@@ -79,19 +81,20 @@ distributions.each { distro ->
7981
println "Archiving artifact: " + deb_file
8082
archiveArtifacts artifacts: 'dist/debian/' + deb_file
8183
}
84+
8285
// Cleanup: remove any produced files named in debian/files
8386
// Try both the dist location and any potential original locations referenced by debian/files
84-
sh """
87+
sh '''
8588
set -e
8689
if [ -f debian/files ]; then
87-
while read -r f _; do
88-
[ -n "$f" ] || continue
89-
rm -f "dist/debian/$f" || true
90-
rm -f "../$f" || true
91-
rm -f "$WORKSPACE/$f" || true
90+
while read -r file _; do
91+
[ -n "$file" ] || continue
92+
rm -f "dist/debian/$file" || true
93+
rm -f "../$file" || true
94+
rm -f "$WORKSPACE/$file" || true
9295
done < debian/files
9396
fi
94-
"""
97+
'''
9598
}
9699
}
97100
}

0 commit comments

Comments
 (0)