Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit da2657b1 authored by Daya Adianto's avatar Daya Adianto
Browse files

Fix GitLab CI job that runs SonarScanner

parent 014baa5a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,10 @@ stages: ...@@ -5,7 +5,10 @@ stages:
- deploy - deploy
SonarScanner Analysis: SonarScanner Analysis:
image: addianto/sonar-scanner-cli:latest image:
name: addianto/sonar-scanner-cli:latest
entrypoint:
- "/bin/bash"
stage: test stage: test
script: script:
- sonar-scanner - sonar-scanner
...@@ -27,4 +30,4 @@ Publish to Docker Hub: ...@@ -27,4 +30,4 @@ Publish to Docker Hub:
tags: tags:
- docker - docker
only: only:
- master - master
\ No newline at end of file
...@@ -29,7 +29,10 @@ To use the container image as a base image for a CI job on GitLab CI/CD: ...@@ -29,7 +29,10 @@ To use the container image as a base image for a CI job on GitLab CI/CD:
```yaml ```yaml
SonarScanner Analysis: SonarScanner Analysis:
image: addianto/sonar-scanner-cli:latest image:
name: addianto/sonar-scanner-cli:latest
entrypoint:
- "/bin/bash"
# Ideally you want to run SonarScanner after the test suite has generated # Ideally you want to run SonarScanner after the test suite has generated
# test & coverage report. The following is only an example to run # test & coverage report. The following is only an example to run
# SonarScanner concurrently with CI job(s) in `test` stage. # SonarScanner concurrently with CI job(s) in `test` stage.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment