Parameterize job name and description

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

View File

@ -204,8 +204,8 @@ job('infra/configure-jenkins') {
for (i = 0; i < images.size(); i++) {
filename = Paths.get(new URI(images[i]).getPath()).getFileName().toString()
job("infra/sync-image-${i}") {
displayName("test")
description('Synchronize image')
displayName("${filename}")
description("Synchronize image: ${images[i]}")
label('pve')
logRotator {
numToKeep(10)