A simple maven executor written in bash
goals
String with all of the options you want to useskip_on_branch
Skips running this step if the branch specified is the one being runonly_on_branch
Skips running this step if the branch specified is not the one being runsettings
Path to the settings.xml to use, defaults to $HOME/.m2/settings.xmlas_user
Run the maven commands as a user already set up on the boxskip_build
Skips runnig this step if "TRUE" is passed in, this is assuming you are passing in a ENV variable that can be manipulated on the fly
build:
steps:
- alianza/maven:
goals: -Dmaven.test.failure.ignore=false test
settings: $HOME/.m2/settings.xml
skip_on_branch: master
- alianza/maven:
goals: -Dmaven.test.failure.ignore=false deploy
settings: $HOME/.m2/settings.xml
only_on_branch: master
as_user: postgres
Apache 2.0
- Initial release
- update skip_on_branch and only_on_branch so they accept regex
- Fix hardcoded 0 in return bug
- Add as_user option