| ... | @@ -208,6 +208,45 @@ sonarqube@sonarqube:/etc/sonarqube/bin/linux-x86-64$ ./sonar.sh start |
... | @@ -208,6 +208,45 @@ sonarqube@sonarqube:/etc/sonarqube/bin/linux-x86-64$ ./sonar.sh start |
|
|
Started SonarQube.
|
|
Started SonarQube.
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
- Now SonarQube is up and running and it is available in same network <virtual machine ip>:9000
|
|
|
|
|
|
|
|
### Step 3: Installing Gitlab Runner to Windows 10
|
|
|
|
|
|
|
|
- To automate code analysis we need the runner for it
|
|
|
|
- Next we will install Gitlab Runner on Windows 10 and configure it
|
|
|
|
- Download link for [Gitlab Runner Win10](https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-amd64.exe) and guide for installation [Guide for Win10](https://docs.gitlab.com/runner/install/windows.html)
|
|
|
|
- When C:\GitLab-Runner folder is made and downloaded file is renamed as gitlab-runner.exe, next thing to do is to register runner. Guide for it can be found here [Register runner Win10](https://docs.gitlab.com/runner/register/index.html#windows)
|
|
|
|
- Gitlab has good documentation for installation and registration so it is useless to copy it here
|
|
|
|
- CI-token can be found from your project Settings -> CI/CD -> Runner settings and under *Setup a specific Runner manually* is token for runner
|
|
|
|
- Executor: shell
|
|
|
|
- After registration remember to install runner and start it, [Guide for Win10](https://docs.gitlab.com/runner/install/windows.html)
|
|
|
|
- And now project has own runner ready for use
|
|
|
|
- Gitlab project's settings in CI/CD -> Runner Settings should look like this
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
### Step 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|