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

Add support for custom Maven properties in Matrix build #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

biru-codeastromer
Copy link

Fixes jenkins-infra/pipeline-library#851

Description

This PR adds support for custom Maven properties in the Matrix build configuration for the winp repository. The changes allow users to specify different Maven properties (e.g., native.configuration=Release and native.configuration=Debug) for parallel builds.

Changes

  1. Matrix Build Configuration:

    • Added a matrix block to define multiple axes for the build.
    • Introduced a NATIVE_CONFIG axis with values Release and Debug.
    • Retained the existing JDK axis for JDK versions 21 and 17.
  2. Custom Maven Properties:

    • Added a mavenProps variable to pass custom Maven properties (-Dnative.configuration=${NATIVE_CONFIG}) to the mvn clean install command.
  3. Agent Configuration:

    • Updated the agent block to dynamically select the platform (linux or windows) based on the PLATFORM variable.

Copy link

@dduportal dduportal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @biru-codeastromer but your misunderstood the initial request. We need to keep using buildPlugin() in the pipeline, your solution is invalid as it uses a custom pipeline which will soon diverge from the other pipelines as it stops using the library

@biru-codeastromer
Copy link
Author

Thanks @biru-codeastromer but your misunderstood the initial request. We need to keep using buildPlugin() in the pipeline, your solution is invalid as it uses a custom pipeline which will soon diverge from the other pipelines as it stops using the library

Thanks for the insights ! Much appreciated .

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.

Custom Maven properties
2 participants