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 · 0 comments
Open

mavenBuild with profiles #5012

fabenan-f opened this issue Aug 15, 2024 · 0 comments

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!

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

No branches or pull requests

1 participant