This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git
The following commit(s) were added to refs/heads/main by this push:
new 39bdc546 Weekly job (#1757)
39bdc546 is described below
commit 39bdc546f81efd0a0fe793ec487742ce24a6e50f
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Thu Apr 11 12:48:10 2024 -0300
Weekly job (#1757)
* Update Kogito version when build weekly image tags
---
.ci/jenkins/Jenkinsfile.build-image | 12 ++++++++++++
.ci/jenkins/Jenkinsfile.weekly.deploy | 2 ++
.ci/jenkins/dsl/jobs.groovy | 1 +
3 files changed, 15 insertions(+)
diff --git a/.ci/jenkins/Jenkinsfile.build-image
b/.ci/jenkins/Jenkinsfile.build-image
index 892c0343..fec460ac 100644
--- a/.ci/jenkins/Jenkinsfile.build-image
+++ b/.ci/jenkins/Jenkinsfile.build-image
@@ -94,6 +94,18 @@ pipeline {
}
}
}
+
+ stage('Update kogito version') {
+ when {
+ expression { params.UPDATE_KOGITO_VERSION != '' }
+ }
+ steps {
+ script {
+ runPythonCommand("python scripts/manage-kogito-version.py
--bump-to ${params.UPDATE_KOGITO_VERSION} --confirm")
+ }
+ }
+ }
+
// Commented as we cannot fully rely on Quarkus platform
// Should be uncommmented once
https://issues.redhat.com/browse/KOGITO-9120 is implemented
// stage('Setup Quarkus platform') {
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy
b/.ci/jenkins/Jenkinsfile.weekly.deploy
index cf648e8a..8777eabe 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -202,6 +202,8 @@ void createBuildAndTestStageClosure(String image) {
buildParams.add(string(name: 'TESTS_KOGITO_EXAMPLES_URI', value:
params.EXAMPLES_URI))
buildParams.add(string(name: 'TESTS_KOGITO_EXAMPLES_REF', value:
params.EXAMPLES_REF))
+ buildParams.add(booleanParam(name: 'UPDATE_KOGITO_VERSION', value:
getProjectVersion()))
+
buildParams.add(booleanParam(name: 'DEPLOY_IMAGE', value: true))
buildParams.add(booleanParam(name:
'DEPLOY_IMAGE_USE_OPENSHIFT_REGISTRY', value:
isDeployImageInOpenshiftRegistry()))
buildParams.add(string(name: 'DEPLOY_IMAGE_REGISTRY_CREDENTIALS',
value: getDeployImageRegistryCredentials()))
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 5ed082bb..886f40ca 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -186,6 +186,7 @@ void setupBuildImageJob(JobType jobType) {
stringParam('BUILD_KOGITO_APPS_URI', '', '(Optional) Git uri to
the kogito-apps repository to use for tests.')
stringParam('BUILD_KOGITO_APPS_REF', '', '(Optional) Git reference
(branch/tag) to the kogito-apps repository to use for building. Default to
BUILD_BRANCH_NAME.')
stringParam('QUARKUS_PLATFORM_URL',
Utils.getMavenQuarkusPlatformRepositoryUrl(this), 'URL to the Quarkus platform
to use. The version to use will be guessed from artifacts.')
+ stringParam('UPDATE_KOGITO_VERSION', '', '(Optional) Update kogito
to a specific version in the project')
// Test information
booleanParam('SKIP_TESTS', false, 'Skip tests')
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]