Packer jobs for ALT c8 and p9 added
This commit is contained in:
parent
0e68aab50b
commit
7000a2928b
@ -1,16 +1,16 @@
|
|||||||
def baseName = 'maintenance/packer'
|
def baseName = 'maintenance/packer'
|
||||||
def vms = ['qemu']
|
def target_names = ['alt-server', 'alt-workstation', 'alt-kworkstation']
|
||||||
def platforms = ['8.2', 'sisyphus']
|
def vms = ['qemu', 'onebula']
|
||||||
def baseDistrVersion = '8.2'
|
def platforms = ['8.2', '8.3', '8sp', '9', 'sisyphus']
|
||||||
def distrs = ['srv', 'ws', 'kws']
|
def arch = 'x86_64'
|
||||||
def githubProject = 'altlinuxteam/alt-packer'
|
def githubProject = 'altlinuxteam/alt-packer'
|
||||||
def githubBranch = 'jenkins'
|
def githubBranch = 'jenkins'
|
||||||
def packerCachePath = '/data/iso_images/template/iso' // our PVE specific path
|
def packerCachePath = '/data/iso_images/template/iso' // our PVE specific path
|
||||||
|
|
||||||
platforms.each { p ->
|
platforms.each { p ->
|
||||||
distrs.each { d ->
|
target_names.each { tname ->
|
||||||
vms.each { v ->
|
vms.each { v ->
|
||||||
def jobName = "${baseName}-${v}-${d}-${p}"
|
def jobName = "${baseName}-${v}-${tname}-${p}-${arch}"
|
||||||
job(jobName) {
|
job(jobName) {
|
||||||
label('kvm && bigmem && nix')
|
label('kvm && bigmem && nix')
|
||||||
scm {
|
scm {
|
||||||
@ -26,18 +26,22 @@ set -euo pipefail
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
rm -rf output-*
|
rm -rf output-*
|
||||||
|
rm -rf onebula-*
|
||||||
|
rm -rf vbox-*
|
||||||
|
rm -rf qemu-*
|
||||||
rm -f results/*
|
rm -f results/*
|
||||||
|
|
||||||
nix-shell -p gnumake packer --run " \
|
nix-shell -p gnumake packer --run " \
|
||||||
make \
|
make \
|
||||||
|
-e target=${tname} \
|
||||||
-e VM_TYPE=${v} \
|
-e VM_TYPE=${v} \
|
||||||
-e BASE_VERSION=${baseDistrVersion} \
|
-e BASE_VERSION=${p} \
|
||||||
-e TARGET_VERSION=${p} \
|
-e TARGET_VERSION=${p} \
|
||||||
-e PACKER_CACHE_DIR=${packerCachePath} \
|
-e PACKER_CACHE_DIR=${packerCachePath} \
|
||||||
${d}"
|
image"
|
||||||
|
|
||||||
for ext in tar.gz md5 sha1; do
|
for ext in tar.gz md5 sha1 box; do
|
||||||
mv results/${d}.${v}.\${ext} results/alt-${d}-${p}-${v}.\${ext}
|
mv results/${v}-${tname}-${p}-${arch}.\${ext} results/${tname}-${p}-${v}.\${ext}
|
||||||
done
|
done
|
||||||
""".stripIndent()
|
""".stripIndent()
|
||||||
)
|
)
|
||||||
@ -53,3 +57,4 @@ done
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user