Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Simplify exclusion of artifacts during Maven publication and inline CBIaggregator script #2735

Conversation

HannesWell
Copy link
Member

This PR enhances the workflow for publication to Maven in the following two steps:

  1. Simplify exclusion of artifacts during Maven publication
    Instead of activly deleting not desired artifacts and collecting the resulting garbage by deleting all then unused dependencies, just skip the validation and deployment of undesired artifacts from the folders of the published projects/groups.
  2. Inline CBIaggregator script into publishToMaven Jenkinsfile
    Inlining the script allows to integrate its commands tighter with the pipeline and to reuse the existing facilities to download required tools.
    Additionally simplify the configuration of the tool-setup by deriving the versions of the eclipse-tools from the PREVIOUS_RELEASE properties declared in the buildproperties.properties file of the latest I-build.

This is currently a draft since a few things have to be tested, but the general form is already ready.

@HannesWell HannesWell force-pushed the maven-publication-simplify-aggregation branch 2 times, most recently from 5d391e9 to 78d4b59 Compare January 10, 2025 19:26
Instead of actively deleting undesired artifacts and collecting the
resulting garbage by deleting all then unused dependencies, just skip
the validation and deployment of undesired artifacts from the folders of
the published projects/groups.
Inlining the script allows to integrate its commands tighter with the
pipeline and to reuse the existing facilities to download required
tools.

Additionally simplify the configuration of the tool-setup by deriving
the versions of the eclipse-tools from the 'PREVIOUS_RELEASE' properties
declared in 'cje-production/buildproperties.txt'.
Collect the artifacts to publish and their paths once after the
aggregation is completed and reuse that list for validation and the
actual deployment.
This also simplifies tracing the list of published artifacts.
@HannesWell HannesWell force-pushed the maven-publication-simplify-aggregation branch from 78d4b59 to 0dd08bd Compare January 11, 2025 07:15
@HannesWell HannesWell marked this pull request as ready for review January 11, 2025 07:16
@HannesWell
Copy link
Member Author

After a lot of testing and more refinements this is now ready for submission.

The verification build doesn't test this, therefore I submit this immediately.

@HannesWell HannesWell merged commit e759393 into eclipse-platform:master Jan 11, 2025
2 of 4 checks passed
@HannesWell HannesWell deleted the maven-publication-simplify-aggregation branch January 11, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant