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 prepareTests(){ | |
def myMap = [ 'test1' : params.runTest1, 'test2' : params.runTest2 ] | |
def testsToRun = [] | |
for (test in myMap) { | |
if (test.value) { | |
testsToRun.add(test.key) | |
} | |
} | |
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 runTestScript() { | |
String[] testsToRun = prepareTests() | |
def testScript = load "jenkins/test.groovy" | |
testScript.run(testsToRun) | |
} | |
def prepareTests(){ | |
def myMap = [ 'test1' : params.runTest1, 'test2' : params.runTest2 ] | |
def testsToRun = [] | |
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 build(String platform, String branch) { | |
//do stuff | |
} | |
return this |
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 runBuildScript(String platform) { | |
def buildScript = load "jenkins/build.groovy" | |
buildScript.build(platform, env.BRANCH_NAME) | |
} | |
def runTestScript() { | |
def testScript = load "jenkins/test.groovy" | |
testScript.run() | |
} |
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 run() { | |
//do stuff | |
} | |
return this |
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 run(String platform, String branch) { | |
//do stuff | |
} | |
return this |
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 runBuildScript(String platform) { | |
def buildScript = load "jenkins/build.groovy" | |
buildScript.run(platform, env.BRANCH_NAME) | |
} | |
def runTestScript() { | |
def testScript = load "jenkins/test.groovy" | |
testScript.run() | |
} |
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
env overrides: [isSuccess = "true"] |
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
env overrides: [isSuccess = true] |
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
environment { | |
isSuccess = false //this is a global variable and can be accessed from any node | |
} |
NewerOlder