101 lines
1.9 KiB
Groovy
101 lines
1.9 KiB
Groovy
def confrepo = 'http://gogs.srt/BaseALT/autojen.git'
|
|
|
|
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('File synchronization') {
|
|
description('File synchronization')
|
|
filterBuildQueue()
|
|
filterExecutors()
|
|
columns {
|
|
status()
|
|
name()
|
|
buildButton()
|
|
}
|
|
jobs {
|
|
name('sync-c8')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
platforms.each { platform ->
|
|
job("infra/sync-${platform}") {
|
|
displayName("Synchronize ALT Linux repos for ${platform}")
|
|
description('Runs synchronization script on PVE')
|
|
label('pve')
|
|
environmentVariables {
|
|
// Directory to save repository to'
|
|
env('MIRRORS_DEST', mirrorsDest)
|
|
// Host to download files from
|
|
env('MIRRORS_SRC', mirrorsSrc)
|
|
// ALT Linux branch to download
|
|
env('PLATFORM', platform)
|
|
}
|
|
scm {
|
|
git {
|
|
remote {
|
|
name('origin')
|
|
url(confrepo)
|
|
}
|
|
branch('master')
|
|
extensions {
|
|
cleanAfterCheckout()
|
|
}
|
|
}
|
|
}
|
|
wrappers {
|
|
sshAgent('robot_key', 'jenkins-gogs')
|
|
}
|
|
steps {
|
|
shell(readFileFromWorkspace('scripts/sync_alt_repo'))
|
|
}
|
|
}
|
|
}
|
|
|