-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.0.x] NO-ISSUE: Missing KIE Sandbox Quarkus Accelerator Jenkins jo…
…b and checksum files content fixes (#2596)
- Loading branch information
1 parent
8310a4e
commit b265cfe
Showing
25 changed files
with
264 additions
and
91 deletions.
There are no files selected for viewing
125 changes: 125 additions & 0 deletions
125
.ci/jenkins/Jenkinsfile.release-candidate.quarkus-accelerator
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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@Library('jenkins-pipeline-shared-libraries')_ | ||
|
||
pipeline { | ||
agent { | ||
docker { | ||
image 'docker.io/apache/incubator-kie-tools-ci-build:10.0.999' | ||
args '--shm-size=2g --privileged --group-add docker' | ||
label util.avoidFaultyNodes() | ||
} | ||
} | ||
|
||
options { | ||
timeout(time: 60, unit: 'MINUTES') | ||
} | ||
|
||
parameters { | ||
string(name: 'BRANCH_NAME', description: 'Set the Git branch to checkout (0.0.999)', trim: true) | ||
string(name: 'RELEASE_VERSION', description: 'Release version', trim: true) | ||
string(name: 'TAG_NAME', description: 'Tag name to be created', trim: true) | ||
} | ||
|
||
stages { | ||
stage('Load local shared scripts') { | ||
steps { | ||
script { | ||
pipelineVars = load '.ci/jenkins/shared-scripts/pipelineVars.groovy' | ||
githubUtils = load '.ci/jenkins/shared-scripts/githubUtils.groovy' | ||
} | ||
} | ||
} | ||
|
||
stage('Clean workspace') { | ||
steps { | ||
cleanWs(deleteDirs: true, disableDeferredWipeout: true) | ||
} | ||
} | ||
|
||
stage('Checkout kie-sandbox-quarkus-accelerator') { | ||
steps { | ||
dir('kie-sandbox-quarkus-accelerator') { | ||
script { | ||
githubUtils.checkoutRepo( | ||
'http://github.com/apache/incubator-kie-sandbox-quarkus-accelerator.git', | ||
"${params.BRANCH_NAME}", | ||
"${pipelineVars.kieToolsBotGithubCredentialsId}" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Setup Git repository') { | ||
steps { | ||
dir('kie-sandbox-quarkus-accelerator') { | ||
script { | ||
sh """#!/bin/bash -el | ||
git config user.email [email protected] | ||
git config user.name asf-ci-kie | ||
git checkout ${params.BRANCH_NAME} | ||
""".trim() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Update kogito BOM version') { | ||
steps { | ||
dir('kie-sandbox-quarkus-accelerator') { | ||
script { | ||
sh """#!/bin/bash -el | ||
mvn versions:set-property -Dproperty=kogito.bom.version -DnewVersion=${params.RELEASE_VERSION} | ||
""".trim() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Commit changes') { | ||
steps { | ||
dir('kie-sandbox-quarkus-accelerator') { | ||
script { | ||
sh """#!/bin/bash -el | ||
git add . | ||
git commit --allow-empty -am "Apache KIE ${params.RELEASE_VERSION} release" | ||
""".trim() | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Create a new tag') { | ||
steps { | ||
dir('kie-sandbox-quarkus-accelerator') { | ||
script { | ||
githubUtils.createTag("${params.TAG_NAME}") | ||
githubUtils.pushObject('origin', "${params.TAG_NAME}", "${pipelineVars.asfCIGithubCredentialsId}") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
cleanWs(deleteDirs: true, disableDeferredWipeout: true) | ||
} | ||
} | ||
} |
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
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
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
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
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
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
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
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
Oops, something went wrong.