ciricihq / gitlab-sonar-scanner

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

Update sonar scanner to 3.2.0.1227 #33

Closed bartleboeuf closed 5 years ago

bartleboeuf commented 5 years ago

I update URL and release version of the sonar scanner, and some cleaning

gtrias commented 5 years ago

Thank you @bartleboeuf !

I'll try to implement some basic testing using travis (see #4 ) in order to test this new version. Later we'll publish this new version

cc @elboletaire

elboletaire commented 5 years ago

@bartleboeuf can you please explain why have you added the TZ in there? Take in mind that the build process runs on our own, so does not make much sense to have it there. You better define the timezone volume for your runner on its configuration (gitlab-runner config.toml file):

[runners.docker]
  volumes = ["/usr/share/zoneinfo/Europe/Paris:/etc/localtime"]

If you're doing this cos' you wanna be able to change it on the fly, we should modify the entrypoint to be able to handle it; afaik setting TZ does nothing with docker run (some images automatically switch the timezone with the TZ var, but not the one we used apparently), and we should do that linking process directly on the entrypoint file.

bartleboeuf commented 5 years ago

@elboletaire I added the TZ to have the correct time in the log timestamps. We don't want to change it at runtime. But, I still agree that this can be done in sonar-scanner-run.sh

elboletaire commented 5 years ago

Yeah but doing it that way you're setting the correct time for you. We'll need to manage this in the entrypoint file, so this code should be removed here (as has nothing to do with updating the client itself, are two different issues btw).

hansingt commented 5 years ago

As this PR seems to be dead I took it over at https://github.com/ciricihq/gitlab-sonar-scanner/pull/34

elboletaire commented 5 years ago

Closed in favor of #35