frogbot icon indicating copy to clipboard operation
frogbot copied to clipboard

support passing options to maven on-the-fly

Open tomhmc opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I would like to be able to pass a maven option on-the-fly e.g. -DdisableX=true

(currently our builds try and extract a git branch from the working directory, and it seems that the base branch audit is downloaded as an archive and untarred and results in bare code- we can disable this on the fly e.g. -DdisableX=true, but can't find a way to pass this into frogbot job)

Describe the solution you'd like to see

A JF_MAVEN_ARGS env var to pass options specific to the frogbot run

Describe alternatives you've considered

  • MAVEN_ARGS is not supported until maven version 4.x.x - https://maven.apache.org/configure.html
  • Options can be set in .mvn/maven.config but I don't want to generally apply those options to all builds.
  • copying in maven.config with an earlier workflow step doesn't get used when auditing the base branch

Additional context Add any other context or screenshots about the feature request here.

tomhmc avatar Nov 09 '22 16:11 tomhmc