Job to sync images parameterized
This commit is contained in:
parent
9a43a1bed9
commit
96fb091d21
@ -74,46 +74,16 @@ def elbrusBracnhes = [
|
||||
'sisyphus'
|
||||
]
|
||||
|
||||
def imageMap = [:]
|
||||
imageMap.put(
|
||||
def images = [
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p8/images/workstation/alt-workstation-8.2.1-20190906-x86_64-ru-install-dvd5.iso',
|
||||
'4cee4be0ea4376a8c66a5d683b67818cf5e7dc20'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p8/images/server/alt-server-8.2.1-20190906-x86_64-ru-install-dvd5.iso',
|
||||
'4656c0dc51064514da306dfc98539ce0cbee6b28'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p8/images/kworkstation/alt-kworkstation-8.3-install-x86_64.iso',
|
||||
'77d28eb143efaeeb648d7e322a28d2347f1370b6'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/server/alt-server-20191009_rc4-x86_64.iso',
|
||||
'774171f1b76a81cda777c4a1c1a2c4107406c589'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/server/alt-server-20191009_rc4-aarch64.iso',
|
||||
'9ba2c96da97ba5423f2b0f6404e6feb2a27fe614'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/workstation/x86_64/alt-workstation-8.991_rc2-x86_64.iso',
|
||||
'NONE'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/workstation/aarch64/alt-workstation-8.991_rc2-aarch64.iso',
|
||||
'NONE'
|
||||
)
|
||||
|
||||
imageMap.put(
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/workstation/mipsel/tavolga-alt-workstation-8.920_beta2-mipsel.recovery.tar',
|
||||
'897ad0bbd0cd4770f0cfefac343d6a045fab82ae'
|
||||
)
|
||||
'http://ftp.altlinux.org/pub/distributions/ALTLinux/p9/images/workstation/mipsel/tavolga-alt-workstation-8.920_beta2-mipsel.recovery.tar'
|
||||
]
|
||||
|
||||
folder('infra') {
|
||||
displayName('Infrastructure')
|
||||
@ -231,7 +201,8 @@ job('infra/configure-jenkins') {
|
||||
}
|
||||
*/
|
||||
|
||||
job("infra/sync-image-test") {
|
||||
for (i = 0; i < images.size(); i++) {
|
||||
job("infra/sync-image-${i}") {
|
||||
displayName("test")
|
||||
description('Synchronize image')
|
||||
label('pve')
|
||||
@ -257,12 +228,13 @@ job('infra/configure-jenkins') {
|
||||
}
|
||||
triggers {
|
||||
// Make a pause for sync during working hours
|
||||
//cron('H 3,7,9,20,23 * * *')
|
||||
cron('H 3,7,9,20,23 * * *')
|
||||
}
|
||||
steps {
|
||||
//shell("/usr/bin/env IMAGES_DEST=" + '${IMAGES_DEST}' + "IMAGE=${url} HASH=${hash} /bin/sh ./scripts/sync_image")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate jobs to syncrinize various repos. The process looks like
|
||||
|
Loading…
Reference in New Issue
Block a user