You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
745 B
29 lines
745 B
kind: pipeline
|
|
ttype: docker
|
|
name: ShakeAndCraft
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: install-unzip
|
|
image: alpine
|
|
commands:
|
|
- apk add --no-cache unzip
|
|
- name: install-sonar-scanner
|
|
image: gradle:jdk11
|
|
commands:
|
|
- curl -sSLo /tmp/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip
|
|
- unzip -q /tmp/sonar-scanner-cli.zip -d /opt/sonar-scanner
|
|
- export PATH=$PATH
|
|
- name: sonarqube
|
|
image: openjdk:latest
|
|
environment:
|
|
SONAR_TOKEN:
|
|
from_secret: SONAR_TOKEN
|
|
SONAR_HOST_URL: "https://your-sonarqube-url.com"
|
|
settings:
|
|
sources: ./ShakeAndCraft/
|
|
commands:
|
|
- sonar-scanner |