Sync jobs refactored

This commit is contained in:
Игорь Чудов 2019-10-14 16:55:33 +04:00
parent 29b745f5f8
commit 8ffdbc6216
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -106,45 +106,25 @@ folder('infra') {
}
}
listView {
name('AMD64')
name('Repos')
columns {
status()
name()
buildButton()
}
jobs {
name("sync-c8")
name("sync-p8")
name("sync-p9")
regex("sync-pub-.*")
}
}
listView {
name('MCST e2k')
name('Elbrus repos')
columns {
status()
name()
buildButton()
}
jobs {
name("sync-e2k-c8")
name("sync-e2k-p8")
name("sync-e2k-p9")
}
}
listView {
name('MIPS32 LE')
columns {
status()
name()
buildButton()
}
}
listView {
name('Aarch64')
columns {
status()
name()
buildButton()
regex("sync-e2k-.*")
}
}
}
@ -232,7 +212,7 @@ for (i = 0; i < images.size(); i++) {
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")
shell("/usr/bin/env IMAGES_DEST=" + '${IMAGES_DEST}' + "IMAGE=${url} HASH=${hash} /bin/sh ./scripts/sync_image")
}
}
}
@ -246,7 +226,7 @@ for (i = 0; i < images.size(); i++) {
* 3) Cleanup workspace;
*/
platforms.each { platform ->
job("infra/sync-${platform}") {
job("infra/sync-pub-${platform}") {
displayName("Synchronize ALT Linux repos for ${platform}")
description('Runs synchronization script on PVE')
// The job must be run on pve node