Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Oct 13, 2021
1 parent 54902b1 commit af7d916
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ KogitoJobUtils.createDeployArtifactsJob(this, 'kogito-runtimes', FolderUtils.get
KogitoJobUtils.createUpdateVersionJob(this, 'kogito-runtimes', FolderUtils.getNightlyFolder(this), KogitoJobType.NIGHTLY, [
versions: ['kogito'],
scripts: [
update_version: 'scripts/update_version.groovy'
update_version: 'scripts/update_version.groovy',
pipeline_checks: 'scripts/version_checks.groovy',
]
])

Expand Down
13 changes: 13 additions & 0 deletions .ci/jenkins/scripts/version_checks.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
void execute(def pipelinesCommon) {
if (pipelinesCommon.isRelease() || pipelinesCommon.isCreatePr()) {
// Verify version is set
assert pipelinesCommon.getKogitoVersion()

if (pipelinesCommon.isRelease()) {
// Verify if on right release branch
assert pipelinesCommon.getGitBranch() == util.getReleaseBranchFromVersion(pipelinesCommon.getKogitoVersion())
}
}
}

return this

0 comments on commit af7d916

Please sign in to comment.