Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Remove error propagation and test result setting from library.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz authored Nov 13, 2017
1 parent ea2ac3a commit e393b4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vars/getSlave.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def LinkedHashMap call(String arch, Boolean runOnProvisionedHost) {
string(name: 'ARCH', value: arch),
booleanParam(name: 'CONNECT_AS_SLAVE', value: runOnProvisionedHost)
],
propagate: true,
propagate: false,
wait: true
])

Expand All @@ -43,7 +43,6 @@ def LinkedHashMap call(String arch, Boolean runOnProvisionedHost) {
} catch (e) {
// If provision fails, grab the build number from the error message and set build status to not built
slave.buildNumber = ((e =~ "(provision-multiarch-slave #)([0-9]*)")[0][2])
currentBuild.result = 'NOT_BUILT'
slave.error = e.toString()
} finally {
println "Provisioned: ${slave}"
Expand Down

0 comments on commit e393b4b

Please sign in to comment.