License Check template does not work in certain configurations (Java 11 projects)
Summary
I tried using the license management template on a multi module maven project. https://gitlab.com/haynes/paranamer/tree/master
The license_management job fails with:
mesg: ttyname failed: Inappropriate ioctl for device
Unable to parse command line options: Unrecognized option: --batch-mode --errors --fail-at-end --show-version
These options are defined in the variable MAVEN_CLI_OPTS. In the actual test job that uses this variable, the build works just fine.
Steps to reproduce
see https://gitlab.com/haynes/paranamer/tree/master
Example Project
https://gitlab.com/haynes/paranamer/tree/master
What is the current bug behavior?
The license check fails.
with MAVEN_CLI_OPTS defined as a variable:
https://gitlab.com/haynes/paranamer/-/jobs/178763450
Without defining the variable:
https://gitlab.com/haynes/paranamer/-/jobs/178766644
What is the expected correct behavior?
The license check should run without problems.
Relevant logs and/or screenshots
https://gitlab.com/haynes/paranamer/-/jobs/178763450
Output of checks
This bug happens on GitLab.com