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 { listView {
name('AMD64') name('Repos')
columns { columns {
status() status()
name() name()
buildButton() buildButton()
} }
jobs { jobs {
name("sync-c8") regex("sync-pub-.*")
name("sync-p8")
name("sync-p9")
} }
} }
listView { listView {
name('MCST e2k') name('Elbrus repos')
columns { columns {
status() status()
name() name()
buildButton() buildButton()
} }
jobs { jobs {
name("sync-e2k-c8") regex("sync-e2k-.*")
name("sync-e2k-p8")
name("sync-e2k-p9")
}
}
listView {
name('MIPS32 LE')
columns {
status()
name()
buildButton()
}
}
listView {
name('Aarch64')
columns {
status()
name()
buildButton()
} }
} }
} }
@ -232,7 +212,7 @@ for (i = 0; i < images.size(); i++) {
cron('H 3,7,9,20,23 * * *') cron('H 3,7,9,20,23 * * *')
} }
steps { 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; * 3) Cleanup workspace;
*/ */
platforms.each { platform -> platforms.each { platform ->
job("infra/sync-${platform}") { job("infra/sync-pub-${platform}") {
displayName("Synchronize ALT Linux repos for ${platform}") displayName("Synchronize ALT Linux repos for ${platform}")
description('Runs synchronization script on PVE') description('Runs synchronization script on PVE')
// The job must be run on pve node // The job must be run on pve node