ciricihq / gitlab-sonar-scanner

This project is no longer maintained
GNU General Public License v3.0
80 stars 62 forks source link

sonar-scanner-run.sh only pass the first argument #43

Closed petersipos closed 5 years ago

petersipos commented 5 years ago

When someone try to add custom arguments to the gitlab-sonar-scanner command, only the first argument is watched because of the last line of that sonar-scanner-run.sh file https://github.com/ciricihq/gitlab-sonar-scanner/blob/3115ed4e1b92dc20faaf213f4453dd1dc5f2e7db/sonar-scanner-run.sh#L84

All other argument is ignored.

I tried to pass

  script:
    - gitlab-sonar-scanner -X -Djavax.net.ssl.trustStore=/usr/bin/local.keystore -Djavax.net.ssl.trustStorePassword=changeit

arguements to bypass the custom, enterprise wide, self-signed root CA certificates ignoring (related issue to: #40)