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/11 16:35:16 UTC

(incubator-kie-kogito-pipelines) branch main updated: kie-issues#763: Adjust CI configuration for maven projects unifying on project.version 10 (#1157)

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-pipelines.git


The following commit(s) were added to refs/heads/main by this push:
     new 83891936 kie-issues#763: Adjust CI configuration for maven projects unifying on project.version 10 (#1157)
83891936 is described below

commit 8389193644c7f030fe826f038cc8c8709043e18c
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Thu Jan 11 13:35:12 2024 -0300

    kie-issues#763: Adjust CI configuration for maven projects unifying on project.version 10 (#1157)
    
    * remove mappings from buldchain configuration files
    
    * remove call setup job on main branch stage from the release prepare job
---
 .ci/project-dependencies.yaml                     | 48 +----------------------
 dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare | 39 ------------------
 2 files changed, 1 insertion(+), 86 deletions(-)

diff --git a/.ci/project-dependencies.yaml b/.ci/project-dependencies.yaml
index 7599df54..d2a6bec7 100644
--- a/.ci/project-dependencies.yaml
+++ b/.ci/project-dependencies.yaml
@@ -1,66 +1,20 @@
 version: "2.1"
 dependencies:
   - project: apache/incubator-kie-drools
-    mapping:
-      dependencies:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)"
-      dependant:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)"
-      # exclude:
-      #   - kiegroup/kie-jpmml-integration
 
   - project: apache/incubator-kie-kogito-runtimes
     dependencies:
       - project: apache/incubator-kie-drools
-    mapping:
-      dependencies:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)"
-      dependant:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)"
-      exclude:
-        - apache/incubator-kie-kogito-examples
-        - apache/incubator-kie-kogito-apps
   
   - project: apache/incubator-kie-kogito-apps
     dependencies:
       - project: apache/incubator-kie-kogito-runtimes
-    mapping:
-      dependencies:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)"
-      dependant:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)"
-      exclude:
-        - apache/incubator-kie-kogito-examples
-        - apache/incubator-kie-kogito-runtimes
 
   - project: apache/incubator-kie-kogito-examples
     dependencies:
       - project: apache/incubator-kie-kogito-runtimes
       - project: apache/incubator-kie-kogito-apps
-    mapping:
-      dependencies:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)"
-      dependant:
-        default:
-          - source: (\d*)\.(.*)
-            targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)"
-      exclude:
-        - apache/incubator-kie-kogito-apps
-        - apache/incubator-kie-kogito-runtimes
+  
   # - project: kiegroup/kie-jpmml-integration
   #   dependencies:
   #     - project: apache/incubator-kie-drools
diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare b/dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare
index 58505399..49f3e87c 100644
--- a/dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare
+++ b/dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare
@@ -168,45 +168,6 @@ pipeline {
                         }
                     }
                 }
-
-                stage('Call setup job on main branch') {
-                    steps {
-                        script {
-                            String mainBranch = readSeedConfig().git.branches.find { it.main_branch }.name
-                            if (mainBranch) {
-                                sendNotification("Calling setup branch job on main branch.\n**Please wait for the job to be successful before performing any action on the main branch...**")
-
-                                List buildParams = []
-                                for (def project : getEcosystemProjects()) {
-                                    String paramKey = getVersionParameterKey(project.name)
-                                    String version = project.default_main_version ?: util.getNextVersion(getVersionFromProject(project.name), 'minor')
-                                    buildParams.add(string(name: paramKey, value: version))
-                                }
-                                for (def project : getEcosystemDependencyProjects()) {
-                                    String paramKey = getVersionParameterKey(project.name)
-                                    String version = project.default_main_version ?: util.getNextVersion(getVersionFromProject(project.name), 'minor')
-                                    buildParams.add(string(name: paramKey, value: version))
-                                }
-
-                                def job = [:]
-                                echo "Call job './${mainBranch}/setup-branch/0-setup-branch' with buildParams ${buildParams}"
-                                job = build(job: "./${mainBranch}/setup-branch/0-setup-branch", wait: true, parameters: buildParams, propagate: false)
-                                if(job.result != 'SUCCESS') {
-                                    unstable("Error executing the main setup job ...")
-                                    String msg = "ERROR: Setup branch job on main branch was unsuccessful."
-                                    if(job) {
-                                        msg += "\nPlease review job ${job.absoluteUrl}..."
-                                    }
-                                    sendNotification(msg)
-                                } else {
-                                    sendNotification("Setup branch job on main branch finished successfully. ")
-                                }
-                            } else {
-                                echo 'No main branch defined into the configuration ... Cannot init it ...'
-                            }
-                        }
-                    }
-                }
             }
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org