You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ra...@apache.org on 2024/01/19 11:31:56 UTC
(incubator-kie-kogito-runtimes) branch kie-issues_821 updated (56bf485a4f -> ab85a676d1)
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a change to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
discard 56bf485a4f Weekly job fixes
discard b2f7bc8de3 Weekly job fixes
discard 46f42d5988 Fix job type
discard 49b0994777 Initial implementation of Kogito Runtimes weekly deploy job
add c8841fd7bf remove jandex workaround used to workaround Quarkus 2.13.x (#3351)
add dec8bbdd33 [incubator-kie-issues-824] Upgrade maven plugin versions inside kogito-runtimes (#3355)
add cfc3361887 [Fix_#3337] Avoid creating duplicate consumer (#3357)
add b3c0e0974b [incubator-kie-issues#820] Make Drools and Kogito build reproducible (#3356)
add b89e14ddca [Fix_#3353] Adding source to process definition data event (#3358)
new 209d9d95d2 Initial implementation of Kogito Runtimes weekly deploy job
new e5be8097d4 Fix job type
new ebf1680df1 Weekly job fixes
new ab85a676d1 Weekly job fixes
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (56bf485a4f)
\
N -- N -- N refs/heads/kie-issues_821 (ab85a676d1)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
addons/common/events/decisions/pom.xml | 4 ++
addons/common/events/mongodb/pom.xml | 4 ++
addons/common/events/predictions/pom.xml | 5 +-
addons/common/events/rules/pom.xml | 6 +++
addons/common/explainability/pom.xml | 4 ++
addons/common/human-task-prediction/api/pom.xml | 4 ++
addons/common/human-task-prediction/smile/pom.xml | 4 ++
addons/common/jobs/api/pom.xml | 6 ++-
addons/common/jobs/management-common/pom.xml | 4 ++
addons/common/knative/eventing/pom.xml | 4 ++
addons/common/kubernetes-service-catalog/pom.xml | 4 ++
addons/common/kubernetes/pom.xml | 4 ++
addons/common/mail/pom.xml | 4 ++
addons/common/marshallers/avro/pom.xml | 4 ++
addons/common/messaging/pom.xml | 4 ++
addons/common/monitoring/core/pom.xml | 4 ++
addons/common/monitoring/elastic/pom.xml | 4 ++
addons/common/monitoring/prometheus/pom.xml | 4 ++
addons/common/persistence/filesystem/pom.xml | 6 ++-
addons/common/persistence/infinispan/pom.xml | 6 ++-
addons/common/persistence/jdbc/pom.xml | 6 ++-
addons/common/persistence/mongodb/pom.xml | 8 +++-
addons/common/persistence/postgresql/pom.xml | 3 +-
addons/common/persistence/rocksdb/pom.xml | 4 ++
addons/common/pom.xml | 1 -
addons/common/process-management/pom.xml | 4 ++
addons/common/process-svg/pom.xml | 4 ++
addons/common/rest-exception-handler/pom.xml | 4 ++
addons/common/source-files/README.md | 8 ----
addons/common/source-files/pom.xml | 54 ----------------------
.../addon/source/files/SourceFilesException.java | 26 -----------
addons/common/task-management/pom.xml | 4 ++
addons/common/tracing/decision-common/pom.xml | 5 +-
addons/common/tracing/tracing-api/pom.xml | 5 +-
addons/common/tracing/typedvalue-api/pom.xml | 7 ++-
api/kogito-api-incubation-rules-services/pom.xml | 2 +-
api/kogito-api-incubation-rules/pom.xml | 2 +-
api/kogito-api/pom.xml | 2 +-
.../org/kie/kogito}/source/files/SourceFile.java | 2 +-
.../kogito}/source/files/SourceFilesProvider.java | 2 +-
api/kogito-events-core/pom.xml | 6 ++-
api/kogito-jobs-service-api/pom.xml | 4 ++
.../registry/ProcessDefinitionEventRegistry.java | 35 +++++++++++---
.../source/files/SourceFilesProviderImpl.java | 4 +-
.../source/files/SourceFilesProviderImplTest.java | 2 +-
.../META-INF/resources/sources/hiring.bpmn | 0
.../META-INF/resources/sources/petstore.json | 0
.../META-INF/resources/sources/petstore.sw.json | 0
.../META-INF/resources/sources/ymlgreet.sw.yml | 0
api/kogito-timer/pom.xml | 4 ++
drools/kogito-dmn/pom.xml | 2 +-
drools/kogito-pmml/pom.xml | 2 +-
grafana-api/pom.xml | 4 ++
jbpm/process-serialization-protobuf/pom.xml | 3 +-
kogito-bom/pom.xml | 11 -----
kogito-build/kogito-build-no-bom-parent/pom.xml | 19 ++------
kogito-codegen-modules/kogito-codegen-api/pom.xml | 4 ++
kogito-codegen-modules/kogito-codegen-core/pom.xml | 4 ++
.../kogito-codegen-decisions/pom.xml | 4 ++
.../kogito-codegen-integration-tests/pom.xml | 1 +
.../kogito-codegen-predictions/pom.xml | 5 ++
.../pom.xml | 3 ++
.../kogito-codegen-processes/pom.xml | 4 ++
.../kie/kogito/codegen/process/ProcessCodegen.java | 21 +++++----
.../kogito-codegen-rules/pom.xml | 4 ++
.../kogito-codegen-sample-generator/pom.xml | 4 ++
.../kogito-codegen-sample-runtime/pom.xml | 4 ++
kogito-maven-plugin/pom.xml | 4 ++
.../kogito-jq-expression/pom.xml | 5 ++
.../kogito-jsonpath-expression/pom.xml | 5 ++
.../kogito-serverless-workflow-builder/pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 5 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 2 +
.../kogito-serverless-workflow-fluent/pom.xml | 6 +++
.../kogito-serverless-workflow-grpc-parser/pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../kogito-serverless-workflow-rest-parser/pom.xml | 5 ++
.../pom.xml | 4 ++
.../kogito-serverless-workflow-runtime/pom.xml | 4 ++
.../kogito-serverless-workflow-utils/pom.xml | 5 ++
kogito-test-utils/pom.xml | 4 ++
kogito-workitems/kogito-jackson-utils/pom.xml | 5 ++
kogito-workitems/kogito-rest-utils/pom.xml | 4 ++
kogito-workitems/kogito-rest-workitem/pom.xml | 6 +++
pom.xml | 17 +++++++
quarkus/addons/camel/deployment/pom.xml | 4 ++
quarkus/addons/camel/integration-tests/pom.xml | 4 ++
quarkus/addons/camel/runtime/pom.xml | 5 ++
quarkus/addons/common/deployment/pom.xml | 5 ++
quarkus/addons/common/reactive-messaging/pom.xml | 4 ++
quarkus/addons/events/decisions/deployment/pom.xml | 6 ++-
quarkus/addons/events/decisions/runtime/pom.xml | 4 ++
quarkus/addons/events/mongodb/deployment/pom.xml | 5 ++
quarkus/addons/events/mongodb/runtime/pom.xml | 6 ++-
.../addons/events/predictions/deployment/pom.xml | 5 ++
quarkus/addons/events/predictions/runtime/pom.xml | 4 ++
quarkus/addons/events/process/deployment/pom.xml | 5 ++
quarkus/addons/events/process/runtime/pom.xml | 6 ++-
quarkus/addons/events/rules/deployment/pom.xml | 6 +++
quarkus/addons/events/rules/runtime/pom.xml | 4 ++
quarkus/addons/explainability/deployment/pom.xml | 5 ++
.../explainability/integration-tests/pom.xml | 4 ++
quarkus/addons/explainability/runtime/pom.xml | 4 ++
.../deployment/pom.xml | 4 ++
.../runtime/pom.xml | 4 ++
.../test-utils/pom.xml | 5 ++
quarkus/addons/jobs/common/messaging/pom.xml | 4 ++
quarkus/addons/jobs/common/rest-callback/pom.xml | 5 ++
.../jobs/knative-eventing/deployment/pom.xml | 5 ++
.../addons/jobs/knative-eventing/runtime/pom.xml | 4 ++
quarkus/addons/jobs/management/deployment/pom.xml | 5 ++
quarkus/addons/jobs/management/runtime/pom.xml | 4 ++
quarkus/addons/jobs/messaging/deployment/pom.xml | 5 ++
quarkus/addons/jobs/messaging/runtime/pom.xml | 4 ++
quarkus/addons/knative/eventing/deployment/pom.xml | 5 ++
.../knative/eventing/integration-tests/pom.xml | 4 ++
quarkus/addons/knative/eventing/runtime/pom.xml | 4 ++
quarkus/addons/knative/serving/deployment/pom.xml | 4 ++
.../knative/serving/integration-tests/pom.xml | 4 ++
quarkus/addons/knative/serving/runtime/pom.xml | 4 ++
quarkus/addons/kubernetes/deployment/pom.xml | 6 +++
.../addons/kubernetes/integration-tests/pom.xml | 4 ++
quarkus/addons/kubernetes/runtime/pom.xml | 5 ++
quarkus/addons/mail/deployment/pom.xml | 7 ++-
quarkus/addons/mail/runtime/pom.xml | 4 ++
quarkus/addons/marshallers/avro/deployment/pom.xml | 4 ++
quarkus/addons/marshallers/avro/runtime/pom.xml | 5 +-
quarkus/addons/messaging/common/pom.xml | 6 ++-
quarkus/addons/messaging/deployment/pom.xml | 5 ++
quarkus/addons/messaging/runtime/pom.xml | 6 ++-
.../deployment/pom.xml | 4 ++
.../integration-tests/pom.xml | 4 ++
.../runtime/pom.xml | 5 ++
quarkus/addons/monitoring/core/pom.xml | 4 ++
.../addons/monitoring/elastic/deployment/pom.xml | 5 ++
quarkus/addons/monitoring/elastic/runtime/pom.xml | 4 ++
.../monitoring/prometheus/deployment/pom.xml | 5 ++
.../addons/monitoring/prometheus/runtime/pom.xml | 4 ++
.../persistence/filesystem/deployment/pom.xml | 6 +++
.../addons/persistence/filesystem/runtime/pom.xml | 6 ++-
.../persistence/infinispan/deployment/pom.xml | 6 +++
.../addons/persistence/infinispan/health/pom.xml | 6 ++-
.../addons/persistence/infinispan/runtime/pom.xml | 6 ++-
quarkus/addons/persistence/jdbc/deployment/pom.xml | 5 ++
quarkus/addons/persistence/jdbc/runtime/pom.xml | 8 +++-
.../addons/persistence/kafka/deployment/pom.xml | 5 ++
quarkus/addons/persistence/kafka/runtime/pom.xml | 8 +++-
.../addons/persistence/mongodb/deployment/pom.xml | 5 ++
quarkus/addons/persistence/mongodb/runtime/pom.xml | 6 ++-
.../persistence/postgresql/deployment/pom.xml | 5 ++
.../addons/persistence/postgresql/runtime/pom.xml | 7 ++-
.../addons/persistence/rocksdb/deployment/pom.xml | 5 ++
quarkus/addons/persistence/rocksdb/runtime/pom.xml | 6 ++-
.../addons/process-definitions/deployment/pom.xml | 5 ++
quarkus/addons/process-definitions/runtime/pom.xml | 4 ++
.../addons/process-management/deployment/pom.xml | 5 ++
.../process-management/integration-tests/pom.xml | 6 +++
quarkus/addons/process-management/runtime/pom.xml | 4 ++
quarkus/addons/process-svg/deployment/pom.xml | 5 ++
quarkus/addons/process-svg/runtime/pom.xml | 4 ++
quarkus/addons/python/deployment/pom.xml | 6 +++
quarkus/addons/python/integration-tests/pom.xml | 6 +++
quarkus/addons/python/runtime/pom.xml | 6 ++-
quarkus/addons/rest-exception-handler/pom.xml | 5 ++
quarkus/addons/source-files/deployment/pom.xml | 4 ++
.../SourceFileCodegenBindListenerImpl.java | 2 +-
.../files/deployment/FakeSourceFilesRecorder.java | 2 +-
.../SourceFileCodegenBindListenerImplTest.java | 2 +-
quarkus/addons/source-files/runtime/pom.xml | 10 ++--
.../source/files/SourceFilesProviderProducer.java | 2 +
.../addon/source/files/SourceFilesRecorder.java | 3 ++
.../addon/source/files/SourceFilesResource.java | 2 +
.../source/files/SourceFilesResourceTest.java | 2 +
quarkus/addons/task-management/deployment/pom.xml | 6 +++
quarkus/addons/task-management/runtime/pom.xml | 4 ++
.../addons/task-notification/deployment/pom.xml | 5 ++
quarkus/addons/task-notification/runtime/pom.xml | 5 ++
quarkus/addons/tracing-decision/deployment/pom.xml | 1 +
.../tracing-decision/integration-tests/pom.xml | 5 ++
quarkus/addons/tracing-decision/runtime/pom.xml | 4 ++
.../kogito-quarkus-decisions-deployment/pom.xml | 5 +-
.../pom.xml | 1 +
.../pom.xml | 3 +-
.../kogito-quarkus-decisions/pom.xml | 7 ++-
.../kogito-quarkus-common-deployment/pom.xml | 4 ++
.../kogito-quarkus-common/pom.xml | 6 ++-
.../registry/ProcessDefinitionRegistration.java | 8 +++-
.../kogito-quarkus-extension-spi/pom.xml | 6 +++
.../kogito-quarkus-deployment/pom.xml | 6 ++-
.../pom.xml | 1 +
.../kogito-quarkus-integration-test/pom.xml | 1 +
.../kogito-quarkus/pom.xml | 4 ++
.../kogito-quarkus-incubation-common/pom.xml | 6 ++-
.../kogito-quarkus-predictions-deployment/pom.xml | 6 ++-
.../pom.xml | 2 +
.../kogito-quarkus-predictions/pom.xml | 7 ++-
.../kogito-quarkus-processes-deployment/pom.xml | 4 ++
.../pom.xml | 1 +
.../pom.xml | 5 ++
.../kogito-quarkus-processes/pom.xml | 5 ++
.../kogito-quarkus-rules-deployment/pom.xml | 4 ++
.../pom.xml | 1 +
.../kogito-quarkus-rules-integration-test/pom.xml | 1 +
.../kogito-quarkus-rules/pom.xml | 7 ++-
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 4 ++
.../pom.xml | 2 +
.../kogito-quarkus-serverless-workflow/pom.xml | 5 ++
.../pom.xml | 1 +
.../kogito-quarkus-workflow-common/pom.xml | 6 ++-
.../integration-tests-kogito-plugin/pom.xml | 4 ++
.../integration-tests-quarkus-decisions/pom.xml | 1 +
.../integration-tests-quarkus-gradle/pom.xml | 1 +
.../integration-tests-quarkus-legacy-rules/pom.xml | 1 +
.../integration-tests-quarkus-norest/pom.xml | 1 +
.../pom.xml | 4 ++
.../pom.xml | 6 ++-
.../pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../integration-tests-quarkus-processes/pom.xml | 1 +
.../pom.xml | 1 +
.../pom.xml | 1 +
.../integration-tests-quarkus-rules/pom.xml | 1 +
.../integration-tests-quarkus-source-files/pom.xml | 5 ++
quarkus/test/pom.xml | 4 ++
springboot/addons/events/decisions/pom.xml | 4 ++
springboot/addons/events/kafka/pom.xml | 4 ++
springboot/addons/events/mongodb/pom.xml | 4 ++
springboot/addons/events/predictions/pom.xml | 4 ++
springboot/addons/events/rules/pom.xml | 4 ++
springboot/addons/explainability/pom.xml | 5 ++
springboot/addons/jobs/pom.xml | 4 ++
springboot/addons/kubernetes/pom.xml | 5 ++
springboot/addons/mail/pom.xml | 4 ++
springboot/addons/messaging/implementation/pom.xml | 4 ++
.../addons/messaging/integration-tests/pom.xml | 6 ++-
springboot/addons/monitoring/core/pom.xml | 4 ++
springboot/addons/monitoring/elastic/pom.xml | 4 ++
springboot/addons/monitoring/prometheus/pom.xml | 4 ++
springboot/addons/persistence/filesystem/pom.xml | 4 ++
springboot/addons/persistence/infinispan/pom.xml | 4 ++
springboot/addons/persistence/jdbc/pom.xml | 5 +-
springboot/addons/persistence/mongodb/pom.xml | 4 ++
springboot/addons/persistence/postgresql/pom.xml | 4 ++
springboot/addons/process-management/pom.xml | 5 ++
springboot/addons/process-svg/pom.xml | 4 ++
springboot/addons/rest-exception-handler/pom.xml | 4 ++
springboot/addons/task-management/pom.xml | 4 ++
springboot/addons/task-notification/pom.xml | 4 ++
springboot/addons/tracing-decision/pom.xml | 4 ++
springboot/archetype/pom.xml | 4 +-
springboot/integration-tests/pom.xml | 1 +
.../kogito-decisions-spring-boot-starter/pom.xml | 4 ++
.../kogito-predictions-spring-boot-starter/pom.xml | 4 ++
.../kogito-processes-spring-boot-starter/pom.xml | 4 ++
.../kogito-rules-spring-boot-starter/pom.xml | 4 ++
.../starters/kogito-spring-boot-starter/pom.xml | 4 ++
springboot/test/pom.xml | 4 ++
273 files changed, 1075 insertions(+), 202 deletions(-)
delete mode 100644 addons/common/source-files/README.md
delete mode 100644 addons/common/source-files/pom.xml
delete mode 100644 addons/common/source-files/src/main/java/org/kie/kogito/addon/source/files/SourceFilesException.java
rename {addons/common/source-files/src/main/java/org/kie/kogito/addon => api/kogito-api/src/main/java/org/kie/kogito}/source/files/SourceFile.java (98%)
rename {addons/common/source-files/src/main/java/org/kie/kogito/addon => api/kogito-api/src/main/java/org/kie/kogito}/source/files/SourceFilesProvider.java (97%)
rename {addons/common/source-files/src/main/java/org/kie/kogito/addon => api/kogito-services/src/main/java/org/kie/kogito}/source/files/SourceFilesProviderImpl.java (96%)
rename {addons/common/source-files/src/test/java/org/kie/kogito/addon => api/kogito-services/src/test/java/org/kie/kogito}/source/files/SourceFilesProviderImplTest.java (98%)
rename {addons/common/source-files => api/kogito-services}/src/test/resources/META-INF/resources/sources/hiring.bpmn (100%)
rename {addons/common/source-files => api/kogito-services}/src/test/resources/META-INF/resources/sources/petstore.json (100%)
rename {addons/common/source-files => api/kogito-services}/src/test/resources/META-INF/resources/sources/petstore.sw.json (100%)
rename {addons/common/source-files => api/kogito-services}/src/test/resources/META-INF/resources/sources/ymlgreet.sw.yml (100%)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
(incubator-kie-kogito-runtimes) 04/04: Weekly job fixes
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
commit ab85a676d185e959fca5fc46acdb063da5c78113
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Fri Jan 19 08:28:27 2024 -0300
Weekly job fixes
---
.ci/jenkins/Jenkinsfile.weekly.deploy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy b/.ci/jenkins/Jenkinsfile.weekly.deploy
index 3a933c78c6..7a43f30f79 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -225,7 +225,7 @@ void runMavenLocalDeploy(boolean skipTests = true) {
mvnCmd.withProperty('maven.test.failure.ignore', true)
.withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : [])
.withOptions(env.KOGITO_RUNTIMES_BUILD_MVN_OPTS ? [ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS ] : [])
- .skipTests(skipTests)
+ //.skipTests(skipTests) // Conflict somehow with Python testing. If `skipTests={anyvalue}` is set, then exec plugin is not executed ...
.withSettingsXmlFile(MAVEN_SETTINGS_FILE)
.run('clean deploy')
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
(incubator-kie-kogito-runtimes) 03/04: Weekly job fixes
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
commit ebf1680df18f60203ba32c5624eefe03c5ac5612
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Fri Jan 19 08:23:14 2024 -0300
Weekly job fixes
---
.ci/jenkins/Jenkinsfile.weekly.deploy | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy b/.ci/jenkins/Jenkinsfile.weekly.deploy
index 70eccf4c5a..3a933c78c6 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -44,6 +44,8 @@ pipeline {
dir(getRepoName()) {
checkoutRepo()
}
+
+ env.PROJECT_VERSION = maven.mvnGetVersionProperty(getMavenCommand(), 'project.version')
}
}
post {
@@ -73,7 +75,7 @@ pipeline {
maven.mvnSetVersionProperty(
getMavenCommand(),
'version.org.kie',
- getProjectVersion()
+ getDroolsVersion()
)
}
}
@@ -103,7 +105,7 @@ pipeline {
script {
withCredentials([usernamePassword(credentialsId: env.MAVEN_REPO_CREDS_ID, usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) {
- new getMavenCommand()
+ getMavenCommand()
.withSettingsXmlFile(MAVEN_SETTINGS_FILE)
.withProperty('wagon.source', "file://${getLocalDeploymentFolder()}")
.withProperty('wagon.target', env.MAVEN_DEPLOY_REPOSITORY)
@@ -238,14 +240,18 @@ String getCheckoutDatetime() {
}
String getProjectVersionDate() {
- date = (getCheckoutDatetime() =~ /(\d{4}-\d{2}-\d{2})/)[0][0]
- return date.replace('-', '')
+ def projectVersionDate = (getCheckoutDatetime() =~ /(\d{4}-\d{2}-\d{2})/)[0][0]
+ return projectVersionDate.replace('-', '')
}
String getProjectVersion(boolean keepSnapshotSuffix = true) {
- version = maven.mvnGetVersionProperty(getMavenCommand(), 'project.version')
+ def projectVersion = env.PROJECT_VERSION
if (keepSnapshotSuffix) {
- return version.replace("-SNAPSHOT", "-${getProjectVersionDate()}-SNAPSHOT")
+ return projectVersion.replace("-SNAPSHOT", "-${getProjectVersionDate()}-SNAPSHOT")
}
- return version.replace("-SNAPSHOT", "-${getProjectVersionDate()}")
+ return projectVersion.replace("-SNAPSHOT", "-${getProjectVersionDate()}")
+}
+
+String getDroolsVersion() {
+ return getProjectVersion()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
(incubator-kie-kogito-runtimes) 02/04: Fix job type
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
commit e5be8097d4acaa8a46270befa657ced6e49f21db
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Thu Jan 18 14:43:50 2024 -0300
Fix job type
---
.ci/jenkins/dsl/jobs.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 569507bd79..5bdec3d40b 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -242,7 +242,7 @@ void setupReleasePromoteJob() {
void setupWeeklyDeployJob() {
- def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-runtimes.weekly-deploy', JobType.RELEASE, "${jenkins_path}/Jenkinsfile.weekly.deploy", 'Kogito Runtimes Weekly Deploy')
+ def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-runtimes.weekly-deploy', JobType.OTHER, "${jenkins_path}/Jenkinsfile.weekly.deploy", 'Kogito Runtimes Weekly Deploy')
JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams)
jobParams.env.putAll([
JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}",
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
(incubator-kie-kogito-runtimes) 01/04: Initial implementation of Kogito Runtimes weekly deploy job
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
commit 209d9d95d21b8ab47809945b4ec5d94b94209f7e
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Thu Jan 18 14:15:48 2024 -0300
Initial implementation of Kogito Runtimes weekly deploy job
---
.ci/jenkins/Jenkinsfile.weekly.deploy | 251 ++++++++++++++++++++++++++++++++++
.ci/jenkins/dsl/jobs.groovy | 35 +++++
2 files changed, 286 insertions(+)
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy b/.ci/jenkins/Jenkinsfile.weekly.deploy
new file mode 100644
index 0000000000..70eccf4c5a
--- /dev/null
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -0,0 +1,251 @@
+import org.jenkinsci.plugins.workflow.libs.Library
+@Library('jenkins-pipeline-shared-libraries')_
+
+import org.kie.jenkins.MavenCommand
+import org.kie.jenkins.MavenStagingHelper
+
+deployProperties = [:]
+
+pipeline {
+ agent {
+ docker {
+ image env.AGENT_DOCKER_BUILDER_IMAGE
+ args env.AGENT_DOCKER_BUILDER_ARGS
+ }
+ }
+
+ options {
+ timestamps()
+ timeout(time: 360, unit: 'MINUTES')
+ }
+
+ // parameters {
+ // For parameters, check into ./dsl/jobs.groovy file
+ // }
+
+ environment {
+ // Static env is defined into ./dsl/jobs.groovy file
+
+ KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")
+
+ MAVEN_DEPLOY_LOCAL_DIR = "/tmp/maven_deploy_dir"
+ }
+
+ stages {
+ stage('Initialize') {
+ steps {
+ script {
+ cleanWs(disableDeferredWipeout: true)
+
+ if (params.DISPLAY_NAME) {
+ currentBuild.displayName = params.DISPLAY_NAME
+ }
+
+ dir(getRepoName()) {
+ checkoutRepo()
+ }
+ }
+ }
+ post {
+ success {
+ script {
+ dir(getRepoName()) {
+ setDeployPropertyIfNeeded('git.branch', getBuildBranch())
+ setDeployPropertyIfNeeded('git.author', getGitAuthor())
+ setDeployPropertyIfNeeded('project.version', getProjectVersion())
+ setDeployPropertyIfNeeded('drools.version', getDroolsVersion())
+ }
+ }
+ }
+ }
+ }
+
+ stage('Update project version') {
+ steps {
+ script {
+ maven.mvnVersionsSet(
+ getMavenCommand(),
+ getProjectVersion(),
+ true
+ )
+
+ // Drools version is equal to the project version
+ maven.mvnSetVersionProperty(
+ getMavenCommand(),
+ 'version.org.kie',
+ getProjectVersion()
+ )
+ }
+ }
+ }
+
+ stage('Build & Test & Deploy locally') {
+ steps {
+ script {
+ runMavenLocalDeploy(params.SKIP_TESTS)
+ }
+ }
+ post {
+ always {
+ script {
+ saveReports()
+ util.archiveConsoleLog()
+ }
+ }
+ }
+ }
+
+ stage('Upload artifacts to given repository') {
+ when {
+ expression { return shouldDeployToRepository() }
+ }
+ steps {
+ script {
+ withCredentials([usernamePassword(credentialsId: env.MAVEN_REPO_CREDS_ID, usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
+ configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) {
+ new getMavenCommand()
+ .withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .withProperty('wagon.source', "file://${getLocalDeploymentFolder()}")
+ .withProperty('wagon.target', env.MAVEN_DEPLOY_REPOSITORY)
+ .withProperty('wagon.targetId', 'apache-snapshots-repository')
+ .withProperty('apache.snapshot.repository.username', REPOSITORY_USER)
+ .withProperty('apache.snapshot.repository.password', REPOSITORY_TOKEN)
+ .run("org.codehaus.mojo:wagon-maven-plugin:2.0.2:merge-maven-repos")
+ }
+ }
+ }
+ }
+ }
+
+ stage('Create and push a new tag') {
+ steps {
+ script {
+ projectVersion = getProjectVersion(false)
+ dir(getRepoName()) {
+ githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
+ githubscm.tagRepository(projectVersion)
+ githubscm.pushRemoteTag('origin', projectVersion, getGitAuthorPushCredsId())
+ }
+ }
+ }
+ }
+ }
+ post {
+ always {
+ script {
+ def propertiesStr = deployProperties.collect { entry -> "${entry.key}=${entry.value}" }.join('\n')
+ writeFile(text: propertiesStr, file: 'deployment.properties')
+ archiveArtifacts(artifacts: 'deployment.properties')
+ }
+ }
+ unsuccessful {
+ sendNotification()
+ }
+ cleanup {
+ script {
+ util.cleanNode()
+ }
+ }
+ }
+}
+
+void saveReports() {
+ junit testResults: '**/target/surefire-reports/**/*.xml, **/target/failsafe-reports/**/*.xml', allowEmptyResults: true
+}
+
+void checkoutRepo() {
+ deleteDir()
+ checkout(githubscm.resolveRepository(getRepoName(), getGitAuthor(), getBuildBranch(), false, getGitAuthorCredsId()))
+ // need to manually checkout branch since on a detached branch after checkout command
+ sh "git checkout ${getBuildBranch()}"
+ checkoutDatetime = getCheckoutDatetime()
+ if (checkoutDatetime) {
+ sh "git checkout `git rev-list -n 1 --before=\"${checkoutDatetime}\" ${getBuildBranch()}`"
+ }
+}
+
+void sendNotification() {
+ if (params.SEND_NOTIFICATION) {
+ mailer.sendMarkdownTestSummaryNotification('Weekly Deploy', "[${getBuildBranch()}] Kogito Runtimes", [env.KOGITO_CI_EMAIL_TO])
+ } else {
+ echo 'No notification sent per configuration'
+ }
+}
+
+boolean shouldDeployToRepository() {
+ return env.MAVEN_DEPLOY_REPOSITORY && env.MAVEN_REPO_CREDS_ID && getGitAuthor() == 'apache'
+}
+
+String getRepoName() {
+ return env.REPO_NAME
+}
+
+String getGitAuthor() {
+ // GIT_AUTHOR can be env or param
+ return "${GIT_AUTHOR}"
+}
+
+String getGitAuthorCredsId() {
+ return env.GIT_AUTHOR_CREDS_ID
+}
+
+String getGitAuthorPushCredsId() {
+ return env.GIT_AUTHOR_PUSH_CREDS_ID
+}
+
+String getBuildBranch() {
+ return params.BUILD_BRANCH_NAME
+}
+
+String getPRBranch() {
+ return params.KOGITO_PR_BRANCH
+}
+
+void setDeployPropertyIfNeeded(String key, def value) {
+ if (value) {
+ deployProperties[key] = value
+ }
+}
+
+MavenCommand getMavenCommand(String directory = '') {
+ directory = directory ?: getRepoName()
+ return new MavenCommand(this, ['-fae', '-ntp'])
+ .withOptions(env.BUILD_MVN_OPTS ? [ env.BUILD_MVN_OPTS ] : [])
+ .inDirectory(directory)
+ .withProperty('full')
+}
+
+void runMavenLocalDeploy(boolean skipTests = true) {
+ mvnCmd = getMavenCommand()
+ mvnCmd.withLocalDeployFolder(getLocalDeploymentFolder())
+
+ configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){
+ mvnCmd.withProperty('maven.test.failure.ignore', true)
+ .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : [])
+ .withOptions(env.KOGITO_RUNTIMES_BUILD_MVN_OPTS ? [ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS ] : [])
+ .skipTests(skipTests)
+ .withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .run('clean deploy')
+ }
+}
+
+String getLocalDeploymentFolder() {
+ return "${env.MAVEN_DEPLOY_LOCAL_DIR}/${getRepoName()}"
+}
+
+String getCheckoutDatetime() {
+ return params.GIT_CHECKOUT_DATETIME
+}
+
+String getProjectVersionDate() {
+ date = (getCheckoutDatetime() =~ /(\d{4}-\d{2}-\d{2})/)[0][0]
+ return date.replace('-', '')
+}
+
+String getProjectVersion(boolean keepSnapshotSuffix = true) {
+ version = maven.mvnGetVersionProperty(getMavenCommand(), 'project.version')
+ if (keepSnapshotSuffix) {
+ return version.replace("-SNAPSHOT", "-${getProjectVersionDate()}-SNAPSHOT")
+ }
+ return version.replace("-SNAPSHOT", "-${getProjectVersionDate()}")
+}
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index e80ff2533c..569507bd79 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -111,6 +111,9 @@ setupSpecificBuildChainNightlyJob('native', nightlyJobParamsGetter)
setupReleaseDeployJob()
setupReleasePromoteJob()
+// Weekly job
+setupWeeklyDeployJob()
+
// Tools job
if (isMainStream()) {
KogitoJobUtils.createQuarkusVersionUpdateToolsJobForCurrentRepo(this, [
@@ -236,3 +239,35 @@ void setupReleasePromoteJob() {
}
}
}
+
+
+void setupWeeklyDeployJob() {
+ def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-runtimes.weekly-deploy', JobType.RELEASE, "${jenkins_path}/Jenkinsfile.weekly.deploy", 'Kogito Runtimes Weekly Deploy')
+ JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams)
+ jobParams.env.putAll([
+ JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}",
+ GIT_AUTHOR: "${GIT_AUTHOR_NAME}",
+
+ GIT_AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}",
+ GIT_AUTHOR_PUSH_CREDS_ID: "${GIT_AUTHOR_PUSH_CREDENTIALS_ID}",
+
+ MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}",
+ MAVEN_DEPENDENCIES_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}",
+ MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_URL}",
+ MAVEN_REPO_CREDS_ID: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_CREDS_ID}",
+ ])
+ KogitoJobTemplate.createPipelineJob(this, jobParams)?.with {
+ parameters {
+ stringParam('DISPLAY_NAME', '', 'Setup a specific build display name')
+
+ stringParam('BUILD_BRANCH_NAME', "${GIT_BRANCH}", 'Set the Git branch to checkout')
+
+ // Build&test information
+ booleanParam('SKIP_TESTS', false, 'Skip tests')
+
+ stringParam('GIT_CHECKOUT_DATETIME', '', 'Git checkout date and time - (Y-m-d H:i)')
+
+ booleanParam('SEND_NOTIFICATION', false, 'In case you want the pipeline to send a notification on CI channel for this run.')
+ }
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org