Skip to content

Instantly share code, notes, and snippets.

@VladFrost
Created September 5, 2018 12:52
Show Gist options
  • Save VladFrost/c098e8b0b6d8f1eeebf75bfc72650bd6 to your computer and use it in GitHub Desktop.
Save VladFrost/c098e8b0b6d8f1eeebf75bfc72650bd6 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