Open rafehi opened 7 years ago
Hi, Required is gitlab url, user token for gitlab, sha and project id
Strange. It's definitely configured in the server as https://gitlab.com. However, it did work when I passed it in as a command line function.
Is there a situation in which the global config is ignored?
normally no
@gabrie-allaigre I think you might want to update this information, as the ref_name param is also required at the moment.
Hi, In version 3.0.0, ref_name is required.
Hi @gabrie-allaigre,
would be cool to document this in the changelog as breaking api change. I took me 2 hours to figure out what the property had changed. Should I make a pull request for the README.md?
Hi, sorry for breaking api. Yes accept PR
@gabrie-allaigre here is my PR #118
Thanks
Strange. It's definitely configured in the server as https://gitlab.com. However, it did work when I passed it in as a command line function.
Is there a situation in which the global config is ignored?
I've been trying to figure this out for weeks, I also had to manuall add -Dsonar.girlab.url=https://gitlab.com to my gradle build to trigger the post actions when its configured in the sonar server. Any hints on where to look if i want to submit a PR for a fix?
alays i receive this message 'GitLab Commit Issue Publisher' skipped because one of the required properties is missing
my command is below
/opt/sonar-scanner/bin/sonar-scanner -X -Dsonar.host.url=http://\
i think that i have all required parameters, can you help please?
I've been trying to diagnose this issue without any luck. As far as I can tell, I have all the required configurations:
docker run -v $(pwd):/root/src newtmitch/sonar-scanner sonar-scanner -X -Dsonar.host.url=http://host -Dsonar.analysis.mode=preview -Dsonar.projectKey=key -Dsonar.sources=src -Dsonar.login=user -Dsonar.password=pass -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
The script succeeds however Gitlab isn't updated and the following message is logged: 'GitLab Commit Issue Publisher' skipped because one of the required properties is missing
Any idea what might be causing it? It definitely runs the plugin, as if I exclude -Dsonar.analysis.mode=preview, the plugin fails, complaining that it can't run if not in preview mode.