A simple maven executor written in bash
goalsString with all of the options you want to useskip_on_branchSkips running this step if the branch specified is the one being runonly_on_branchSkips running this step if the branch specified is not the one being runsettingsPath to the settings.xml to use, defaults to $HOME/.m2/settings.xmlas_userRun the maven commands as a user already set up on the boxskip_buildSkips 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: postgresApache 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