Skip to content

Commit

Permalink
Merge pull request #2752 from ARMmbed/jenkinsfile
Browse files Browse the repository at this point in the history
Update Jenkinsfile
  • Loading branch information
sg- authored Sep 22, 2016
2 parents 0c0455b + 7e6882c commit cc69ded
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def toolchains = [
GCC_ARM: "arm-none-eabi-gcc"
]

// mbed.getCurrentBranch returns either local branch name or reference to pull request
def currentBranch = mbed.getCurrentBranch()

// Create a map of predefined build steps
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)

Expand All @@ -25,5 +28,5 @@ def testApps = [
"mbed-client-testapp"
]

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

0 comments on commit cc69ded

Please sign in to comment.