Job to syncronize repos expanded
This commit is contained in:
parent
c0db3ed2f2
commit
3ef2dc7a78
@ -1,8 +1,52 @@
|
||||
folder('samba') {
|
||||
displayName('Samba Team')
|
||||
description('Jobs for Samba AD DC testing and deployment')
|
||||
views {
|
||||
listView('Testing') {
|
||||
description('Samba AD DC tests')
|
||||
filterBuildQueue()
|
||||
filterExecutors()
|
||||
columns {
|
||||
status()
|
||||
name()
|
||||
buildButton()
|
||||
}
|
||||
jobs {
|
||||
name('jenkins-krb5-sisyphus-1x1')
|
||||
name('jenkins-samba-1x3')
|
||||
name('jenkins-samba-2x2')
|
||||
name('jenkins-samba-3x3')
|
||||
name('jenkins-samba-8sp-1x3-pub')
|
||||
name('jenkins-samba-8sp-3x3-pub')
|
||||
name('jenkins-samba-9-3x3-pub')
|
||||
name('jenkins-samba-sisyphus-1x3')
|
||||
name('jenkins-samba-sisyphus-1x3-pub')
|
||||
name('jenkins-samba-sisyphus-3x3')
|
||||
name('jenkins-samba-sisyphus-3x3-pub')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def mirrorsDest = '/data/mirrors/alt'
|
||||
def mirrorsSrc = 'mirror.yandex.ru'
|
||||
|
||||
def platforms = [
|
||||
'c8'
|
||||
]
|
||||
|
||||
def elbrusPlatforms = [
|
||||
'c8'
|
||||
'p8'
|
||||
'p9'
|
||||
'sisyphus'
|
||||
]
|
||||
|
||||
folder('infra') {
|
||||
displayName('Infrastructure')
|
||||
description('Run Jenkins Job DSL to reconfigure master')
|
||||
views {
|
||||
listView('sync') {
|
||||
listView('File synchronization') {
|
||||
description('File synchronization')
|
||||
filterBuildQueue()
|
||||
filterExecutors()
|
||||
@ -10,7 +54,6 @@ folder('infra') {
|
||||
status()
|
||||
name()
|
||||
buildButton()
|
||||
progressBar()
|
||||
}
|
||||
jobs {
|
||||
name('sync-c8')
|
||||
@ -19,8 +62,28 @@ folder('infra') {
|
||||
}
|
||||
}
|
||||
|
||||
job('infra/sync-c8') {
|
||||
displayName('Synchronize ALT Linux repos for c8')
|
||||
description('Runs synchronization script on PVE')
|
||||
platforms.each { platform ->
|
||||
job('infra/sync-${platform}') {
|
||||
displayName('Synchronize ALT Linux repos for ${platform}')
|
||||
description('Runs synchronization script on PVE')
|
||||
label('pve')
|
||||
scm {
|
||||
git('10.64.0.99:BaseALT/autojen.git')
|
||||
}
|
||||
parameters {
|
||||
stringParam('MIRRORS_DEST',
|
||||
mirrorsDest,
|
||||
'Directory to save repository to')
|
||||
stringParam('MIRRORS_SRC',
|
||||
mirrorsSrc,
|
||||
'Host to download files from')
|
||||
stringParam('PLATFORM',
|
||||
platform,
|
||||
'ALT Linux branch to download')
|
||||
}
|
||||
steps {
|
||||
shell(readFileFromWorkspace('scripts/sync_alt_repo'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user