Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sonar-scanner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
sonar-scanner
Commits
272f7129
Commit
272f7129
authored
5 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
update sonar-scanner
add ansible-lint use short hash in example
parent
a9cdf6bf
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#594
failed
5 years ago
Stage: build
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
Dockerfile
+16
-4
16 additions, 4 deletions
Dockerfile
README.md
+1
-1
1 addition, 1 deletion
README.md
with
17 additions
and
6 deletions
.gitlab-ci.yml
+
0
−
1
View file @
272f7129
...
...
@@ -9,4 +9,3 @@ push:
stage
:
push
script
:
-
docker push registry.faked.org/gitlab-ci/sonar-scanner:latest
This diff is collapsed.
Click to expand it.
Dockerfile
+
16
−
4
View file @
272f7129
FROM
openjdk:8-alpine
MAINTAINER
Jan Grewe <jan@faked.org>
ENV
VERSION 3.
0.3.778
ENV
VERSION 3.
3.0.1492
RUN
apk add
--no-cache
curl
grep sed
unzip
RUN
curl
-skLo
/tmp/sonar-scanner.zip https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-
${
VERSION
}
-linux
.zip
\
RUN
apk add
--no-cache
\
curl \
gcc \
grep \
libffi-dev \
musl-dev \
openssl-dev \
sed \
py3-pip \
python3-dev \
unzip
RUN
curl
-skLo
/tmp/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-
${
VERSION
}
-linux
.zip
\
&& unzip /tmp/sonar-scanner.zip -d /opt \
&& mv /opt/sonar-scanner-${VERSION}-linux /opt/sonar-scanner \
&& rm /tmp/sonar-scanner.zip
RUN
sed
-i
's/use_embedded_jre=true/use_embedded_jre=false/g'
/opt/sonar-scanner/bin/sonar-scanner
RUN
pip3
install
ansible-lint
ENV
SONAR_RUNNER_HOME=/opt/sonar-scanner
ENV
PATH $PATH:/opt/sonar-scanner/bin
WORKDIR
/src
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
272f7129
...
...
@@ -11,7 +11,7 @@ sonarqube:
image: registry.faked.org/gitlab-ci/sonar-scanner
stage: test
script:
- sonar-scanner -Dsonar.projectBaseDir=$(pwd) -Dsonar.projectVersion=${CI_COMMIT_SHA}
- sonar-scanner -Dsonar.projectBaseDir=$(pwd) -Dsonar.projectVersion=${CI_COMMIT_
SHORT_
SHA}
```
Make sure you put a
`sonar-project.properties`
file into the root of your repo:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment