Skip to content

Commit

Permalink
Load utils from current workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed Dec 8, 2020
1 parent ddd3dd0 commit d5ee51f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions jenkins/Hono-Release-Pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

node {
def utils = evaluate readTrusted("jenkins/Hono-PipelineUtils.groovy")
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '3')), parameters([
string(defaultValue: '',
description: "The branch to build and release from.\nExamples:\n refs/heads/master\nrefs/heads/1.4.x",
Expand All @@ -39,8 +38,10 @@ node {
booleanParam(defaultValue: true,
description: "Set the documentation for this release as the new stable version.\nDisable for milestone release.",
name: 'STABLE_DOCUMENTATION')])])

try {
checkOut()
def utils = load 'jenkins/Hono-PipelineUtils.groovy'
setReleaseVersionAndBuild(utils)
setVersionForDocumentation()
commitAndTag()
Expand All @@ -51,10 +52,12 @@ node {
} catch (err) {
currentBuild.result = 'FAILURE'
echo "Error: ${err}"
}
finally {
} finally {
echo "Build status: ${currentBuild.result}"
utils.notifyBuildStatus()
step([$class : 'Mailer',
notifyEveryUnstableBuild: true,
recipients : '[email protected]',
sendToIndividuals : false])
}
}

Expand Down

0 comments on commit d5ee51f

Please sign in to comment.