Kusuma04-dev opened a new pull request, #4089:
URL: https://github.com/apache/incubator-kie-tools/pull/4089
**Description**
Per ASF Release Policy, source release archives must not contain compiled
binaries. kogito-gradle-plugin-test/gradle/wrapper/gradle-wrapper.jar was
bundled in the generated sources.zip.
When Jenkinsfile.103xplus.release-candidate runs from an existing stream
branch
(CREATE_STREAM_BRANCH=false, e.g. 10.3.0), the Bootstrap stage fails:
Non-resolvable import POM: Could not find artifact
org.kie.kogito:kogito-apps-bom:pom:10.3.999-SNAPSHOT (absent) @
kie-tools-maven-base
The stream branch (10.3.x) is at the development Kogito version
10.3.999-SNAPSHOT.
drools-and-kogito only builds Drools/Kogito from source for -local versions,
so it
skips the build ("Detected a non-local version").
10.3.999-SNAPSHOT is not published to the Apache snapshots repo or the
staging group,
so maven-base cannot resolve kogito-apps-bom.
The version was only updated to RELEASE_VERSION in the later "Update
versions" stage,
after the failing full pnpm bootstrap.
The first RC works because it builds from main (999-<date>-local), where
Drools and
Kogito are built from source.
**Changes**
Remove gradle-wrapper.jar from the staging directory in
create-source-tarball.sh before creating
apache-kie-<version>-incubating-sources.zip.
In the Bootstrap stage of .ci/jenkins/Jenkinsfile.103xplus.release-candidate:
CREATE_STREAM_BRANCH=true (first RC, building from main): unchanged, runs
pnpm bootstrap.
CREATE_STREAM_BRANCH=false (building from existing X.Y.x):
pnpm bootstrap:root - installs only the root workspace, enough to run the
update scripts.
pnpm update-kogito-version-to --maven ${RELEASE_VERSION} - sets the Kogito
version to the
released one (e.g. 10.3.0) and runs its own full bootstrap, so Maven resolves
kogito-apps-bom:10.3.0 from the staging repositories (STAGING_REPOSITORIES).
--
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]