-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently use BRANCH parameter for retrieving pipeline definition
Signed-off-by: Kai Hudalla <[email protected]>
- Loading branch information
1 parent
98ad949
commit af0829b
Showing
4 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,19 @@ | |
node { | ||
def utils = evaluate readTrusted("jenkins/Hono-PipelineUtils.groovy") | ||
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '3')), parameters([ | ||
string( | ||
name: 'BRANCH', | ||
description: "The branch to read the pipeline definition from.\nExamples:\n refs/heads/master\nrefs/heads/1.3.x", | ||
defaultValue: '', | ||
trim: true), | ||
string( | ||
name: 'RELEASE_VERSION', | ||
description: "The tag to build and deploy.\nExamples:\nrefs/tags/1.0.0-M6\nrefs/tags/1.0.0-RC1\nrefs/tags/2.1.0", | ||
defaultValue: 'refs/tags/', | ||
description: "The tag to build and deploy.\nExamples:\n1.0.0-M6\n1.0.0-RC1\n2.1.0", | ||
defaultValue: '', | ||
trim: true) | ||
])]) | ||
try { | ||
utils.checkOutRepoWithCredentials("${params.RELEASE_VERSION}", "github-bot-ssh", "ssh://[email protected]/eclipse/hono.git") | ||
utils.checkOutRepoWithCredentials("refs/tags/${params.RELEASE_VERSION}", "github-bot-ssh", "ssh://[email protected]/eclipse/hono.git") | ||
buildAndDeploy(utils) | ||
currentBuild.result = 'SUCCESS' | ||
} catch (err) { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,19 @@ | |
node { | ||
def utils = evaluate readTrusted("jenkins/Hono-PipelineUtils.groovy") | ||
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '3')), parameters([ | ||
string( | ||
name: 'BRANCH', | ||
description: "The branch to read the pipeline definition from.\nExamples:\n refs/heads/master\nrefs/heads/1.3.x", | ||
defaultValue: '', | ||
trim: true), | ||
string( | ||
name: 'RELEASE_VERSION', | ||
description: "The tag to build and deploy.\nExamples:\nrefs/tags/1.0.0-M6\nrefs/tags/1.0.0-RC1\nrefs/tags/2.1.0", | ||
defaultValue: 'refs/tags/', | ||
description: "The tag to build and deploy.\nExamples:\n1.0.0-M6\n1.0.0-RC1\n2.1.0", | ||
defaultValue: '', | ||
trim: true) | ||
])]) | ||
try { | ||
utils.checkOutRepoWithCredentials("${params.RELEASE_VERSION}", "github-bot-ssh", "ssh://[email protected]/eclipse/hono.git") | ||
utils.checkOutRepoWithCredentials("refs/tags/${params.RELEASE_VERSION}", "github-bot-ssh", "ssh://[email protected]/eclipse/hono.git") | ||
buildAndDeploy(utils) | ||
currentBuild.result = 'SUCCESS' | ||
} catch (err) { | ||
|
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
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