Kusuma04-dev commented on code in PR #4089:
URL: 
https://github.com/apache/incubator-kie-tools/pull/4089#discussion_r4641901978


##########
.ci/jenkins/Jenkinsfile.103xplus.release-candidate:
##########
@@ -185,9 +185,23 @@ pipeline {
         stage('Bootstrap') {
             steps {
                 dir('kie-tools') {
-                    sh '''#!/bin/bash -el
-                    pnpm bootstrap
-                    '''
+                    script {
+                        if (params.CREATE_STREAM_BRANCH) {
+                            // Building from main: it uses a '-local' Kogito 
version, so Drools and Kogito are built from source.
+                            sh '''#!/bin/bash -el
+                            pnpm bootstrap
+                            '''
+                        } else {
+                            // Building from an existing X.Y.x: it is still at 
the development Kogito version (X.Y.999-SNAPSHOT),
+                            // which is not published anywhere and is not 
built locally, so a full bootstrap would fail to resolve
+                            // e.g. kogito-apps-bom. Bootstrap only the root 
(enough to run the update scripts) and set the
+                            // Kogito version to RELEASE_VERSION first; its 
own bootstrap then resolves it from the staging repositories.
+                            sh """#!/bin/bash -el
+                            pnpm bootstrap:root
+                            pnpm update-kogito-version-to --maven 
${params.RELEASE_VERSION}
+                            """
+                        }
+                    }

Review Comment:
   Yes @yesamer , this is intended. Full bootstrap works only on freshly 
created branches from main. For existing release branches, we first switch from 
the unpublished snapshot version to the release version, then bootstrap 
normally.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to