|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String[] architectures = [] |
|
|
|
|
String[] distributions = ['debian:buster', 'debian:bullseye', 'debian:bookworm', 'ubuntu:focal', 'ubuntu:hirsute', 'ubuntu:impish'] |
|
|
|
|
String[] distributions = ['debian:buster', 'debian:bullseye', 'debian:bookworm', 'ubuntu:focal', 'ubuntu:hirsute', 'ubuntu:impish', 'ubuntu:jammy'] |
|
|
|
|
|
|
|
|
|
String vendor = 'vitexsoftware' |
|
|
|
|
String distribution = '' |
|
|
|
@ -60,7 +60,7 @@ architectures.each {
|
|
|
|
|
ansiColor('xterm') { |
|
|
|
|
stage('Checkout ' + architecture + ' ' + distribution) { |
|
|
|
|
buildImage = docker.image(vendor + '/' + distribution) |
|
|
|
|
sh 'git checkout -- debian/changelog' |
|
|
|
|
sh 'git checkout debian/changelog' |
|
|
|
|
def VERSION = sh ( |
|
|
|
|
script: 'dpkg-parsechangelog --show-field Version', |
|
|
|
|
returnStdout: true |
|
|
|
@ -84,7 +84,7 @@ architectures.each {
|
|
|
|
|
sh 'echo "deb [trusted=yes] file://///$WORKSPACE/dist/debian/ ./" | sudo tee /etc/apt/sources.list.d/local.list' |
|
|
|
|
sh 'sudo apt-get update' |
|
|
|
|
sh 'echo "INSTALATION"' |
|
|
|
|
sh 'IFS="\n\b"; for package in `ls $WORKSPACE/dist/debian/ | grep .deb | awk -F_ \'{print \$1}\'` ; do echo -e "${GREEN} installing ${package} on `lsb_release -sc` ${ENDCOLOR} " ; sudo DEBIAN_FRONTEND=noninteractive DEBCONF_DEBUG=' + debconf_debug + ' apt-get -y install $package ; composer-debian; done;' |
|
|
|
|
sh 'IFS="\n\b"; for package in `ls $WORKSPACE/dist/debian/ | grep .deb | awk -F_ \'{print \$1}\'` ; do echo -e "${GREEN} installing ${package} on `lsb_release -sc` ${ENDCOLOR} " ; sudo DEBIAN_FRONTEND=noninteractive DEBCONF_DEBUG=' + debconf_debug + ' apt-get -y install $package ; echo "test now"; done;' |
|
|
|
|
stash includes: 'dist/**', name: 'dist-' + distroCodename |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|