-
Notifications
You must be signed in to change notification settings - Fork 301
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
git.branch character replacer #138
Comments
Hm... interesting use case. I guess it shouldn't bee too hard too add - more like an output filter with possible aded filters from configuration. If you'd be up to implementing this I'd love to see a PR with this feature :-) |
Ok, you are right. I'll give it a try. |
We have similar issues with other fields thus it would be nice to be able to filter any of the git properties, not just |
From a plugin perspective...what comes close to this feature is: The Build Helper Mojo also has something similar: It might be even useful to restrict the replacement to a specific property:
Not sure if it would be smarter to include another Mojo or execute it inside the git-commit-id-plugin. |
I have implemented this feature and it will be available in version 2.2.3. Example:
Please checkout the readme for additional details! |
allow to replace certain characters with regex #138
I'm having a similar issue where local machines git.branch returns just the branch name but during CI/CD it returns origin/branch-name |
please create a new issue with all relevant details. |
If you work with git-flow, branches get names like this "feature/feature_name"
It would be nice to create jar o ear names with finalNames like this ${epack}-${git.commit.id.describe}-${git.commit.time}-${git.branch}
But the caracter "/" is not valid as filename, it would be nice to have the possibility to replace this character.
The text was updated successfully, but these errors were encountered: