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

mavenBuild with profiles #5012

Open
fabenan-f opened this issue Aug 15, 2024 · 1 comment
Open

mavenBuild with profiles #5012

fabenan-f opened this issue Aug 15, 2024 · 1 comment
Labels
stale marks stale issues and pull requests

Comments

@fabenan-f
Copy link

Hello there,

We are currently using the Piper ready-made pipeline for building and deploying our Java application. Maven is our build tool.

We wanted to add a Maven profile to our build stage using the profiles parameter as suggested in the documentation. According to the docs, we added the profiles parameter to the mavenBuild step configuration in the .pipeline/config.yaml file as follows:

steps:
    mavenBuild:
        profiles: ['a-profile']

However, it seems that this profile is not being picked up. The mavenBuild command is executed without any flags:

./piper mavenBuild --defaultConfig .pipeline/piper-defaults.yml --ignoreCustomDefaults

I performed a superficial screening of the logic and could not see where the loaded config is applied to the command execution such that flags are set in general.

Could someone please help identify why the profile is not being picked up or guide me on the correct way to apply a Maven profile in this context?

Thank you!

Copy link
Contributor

Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale marks stale issues and pull requests
Projects
None yet
Development

No branches or pull requests

1 participant