Created
September 5, 2018 12:52
-
-
Save VladFrost/c098e8b0b6d8f1eeebf75bfc72650bd6 to your computer and use it in GitHub Desktop.
Обновление платформы на всех подчиненных узлах Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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