Skip to content

Commit cc69ded

Browse files
authored
Merge pull request #2752 from ARMmbed/jenkinsfile
Update Jenkinsfile
2 parents 0c0455b + 7e6882c commit cc69ded

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def toolchains = [
1414
GCC_ARM: "arm-none-eabi-gcc"
1515
]
1616

17+
// mbed.getCurrentBranch returns either local branch name or reference to pull request
18+
def currentBranch = mbed.getCurrentBranch()
19+
1720
// Create a map of predefined build steps
1821
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
1922

@@ -25,5 +28,5 @@ def testApps = [
2528
"mbed-client-testapp"
2629
]
2730

28-
// buildTestApps accepts array of test application names and a mbed-os commit hash as parameters
29-
mbed.buildTestApps(testApps, "${env.GIT_REVISION}")
31+
// buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
32+
mbed.buildTestApps(testApps, "${currentBranch}")

0 commit comments

Comments
 (0)