Skip to content

Commit

Permalink
[incubator-kie-issues-1401] Fix build kogito-examples.build-and-test …
Browse files Browse the repository at this point in the history
…in kogito nightly.native folder (#1987)

* [incubator-kie-issues-1401] Fix build kogito-examples.build-and-test in kogito nightly.native folder
- Completely disabled dmn-tracing-quarkus and trusty-tracing-quarkus-devservices

* - Improve version-update
  • Loading branch information
tkobayas authored Aug 15, 2024
1 parent 00da2e0 commit 9253d3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,21 @@ pipeline {
steps {
script {
dir(getRepoName()) {
def oldKogitoVersion = readMavenPom(file: 'pom.xml').version
def pom = readMavenPom(file: 'pom.xml');
def oldKogitoVersion = pom.version
if (oldKogitoVersion == null) {
echo "pom version is null. Using parent pom version"
oldKogitoVersion = pom.parent.version
}
echo "Got old Kogito version ${oldKogitoVersion}"
configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){
// special case for serverless-workflow-examples-parent
maven.mvnVersionsSet(
getMavenCommand('serverless-workflow-examples/serverless-workflow-examples-parent').withSettingsXmlFile(MAVEN_SETTINGS_FILE),
getKogitoVersion(),
true,
false
)
maven.mvnVersionsUpdateParentAndChildModules(
getMavenCommand().withSettingsXmlFile(MAVEN_SETTINGS_FILE),
getKogitoVersion(),
Expand All @@ -119,9 +131,10 @@ pipeline {
}

if (getKogitoVersion() != oldKogitoVersion) {
def status = sh(script: "grep -ir '${oldKogitoVersion}' --include='pom.xml'", returnStatus: true)
def status = sh(script: "grep -ir '>${oldKogitoVersion}<' --include='pom.xml'", returnStatus: true)
if (status == 0) {
error "Old Kogito version ${oldKogitoVersion} is still present into the project... Please review it..."
// some orphaned projects may still have the old version. not an error
echo "Old Kogito version ${oldKogitoVersion} is still present into the project... Please review it..."
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions kogito-quarkus-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
<module>dmn-quarkus-example</module>
<module>dmn-resource-jar-quarkus-example</module>
<module>dmn-multiple-models-quarkus-example</module>
<module>dmn-tracing-quarkus</module>
<module>flexible-process-quarkus</module>
<module>kogito-travel-agency</module>
<module>onboarding-example</module>
Expand Down Expand Up @@ -174,7 +173,6 @@
</property>
</activation>
<modules>
<module>trusty-tracing-quarkus-devservices</module>
</modules>
</profile>

Expand Down

0 comments on commit 9253d3b

Please sign in to comment.