-
-
Save artbear/00a4b7c496498c85a494fe75f45c4123 to your computer and use it in GitHub Desktop.
Обновление платформы на всех подчиненных узлах Jenkins
This file contains hidden or 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