You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the maven_settings_file parameter the code on line 82 checks for the existence of the file relative to the root directory of /tmp/build/put. On lines 290-292 when the maven command is invoked, the code changes to the directly first then evals the command line.
Given this, when using
- put: code-analysisparams:
project_path: sonarqube-analysis-inputscanner_type: mavenproject_key: my-keyproject_name: my namemaven_settings_file: sonarqube-analysis-input/maven_settings.xml
maven cannot find the settings file because it is in the project directlory. You get this error:
Preparing SonarQube scanner...
Using Maven settings file: "sonarqube-analysis-input/maven_settings.xml"...
Starting sonar-scanner (type: maven)...
[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: /tmp/build/put/sonarqube-analysis-input/sonarqube-analysis-input/maven_settings.xml
ERROR in /opt/resource/out : line 292 with exit code 1
If you change the settings file by removing the directory, the code on line 82 can't find the file and stops with an error.
- put: code-analysisparams:
project_path: sonarqube-analysis-inputscanner_type: mavenproject_key: my-keyproject_name: my namemaven_settings_file: maven_settings.xml
yeilds error: Maven settings file not found: maven_settings.xml.
The only way to make it work is to not use relative paths with requires you to use `/tmp/build/put' on the front of the file. This seems wrong as you are putting concourse specifics details into the YAML definition.
The text was updated successfully, but these errors were encountered:
cyclump
changed the title
maven_settings_file parameter not working.
maven_settings_file parameter relative path logic is not working properly.
Jul 15, 2020
When using the maven_settings_file parameter the code on line 82 checks for the existence of the file relative to the root directory of /tmp/build/put. On lines 290-292 when the maven command is invoked, the code changes to the directly first then evals the command line.
Given this, when using
maven cannot find the settings file because it is in the project directlory. You get this error:
If you change the settings file by removing the directory, the code on line 82 can't find the file and stops with an error.
yeilds
error: Maven settings file not found: maven_settings.xml
.The only way to make it work is to not use relative paths with requires you to use `/tmp/build/put' on the front of the file. This seems wrong as you are putting concourse specifics details into the YAML definition.
The text was updated successfully, but these errors were encountered: