Here is the command which works in a git bash and fails in the pipeline.
No error messages in the log.
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout);
However this line works fine in both:
- PREVIOUS_VERSION=$(cat previous_version.txt);
Please advise.