Skip to content

Instantly share code, notes, and snippets.

@artbear
Forked from VladFrost/PlatformUpdate.groovy
Created August 12, 2019 14:58
Show Gist options
  • Save artbear/00a4b7c496498c85a494fe75f45c4123 to your computer and use it in GitHub Desktop.
Save artbear/00a4b7c496498c85a494fe75f45c4123 to your computer and use it in GitHub Desktop.
Обновление платформы на всех подчиненных узлах Jenkins
def labels = ['slave-2', 'slave-3'] // labels for Jenkins node types we will build on
def builders = [:]
for (x in labels) {
def label = x // Need to bind the label variable before the closure - can't do 'for (label in labels)'
// Create a map to pass in to the 'parallel' step so we can fire all the builds at once
builders[label] = {
node(label) {
update_to('8.3.12.1616')
}
}
}
parallel builders
def update_to(v8version) {
deleteDir()
bat "cp -r //distrib/platform/${v8version} ./"
dir(v8version) {
bat "setup.exe /s"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment