Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
f5122b89
Commit
f5122b89
authored
Sep 19, 2024
by
Sarun Mungthanya
Browse files
add gitlab ci
parent
74507fbf
Pipeline
#26380
passed with stage
in 56 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
f5122b89
stages
:
-
sonar_scan
sonar_scan
:
stage
:
sonar_scan
only
:
-
test-sonar
image
:
maven:3.8.1-jdk-11
# Use an appropriate image
script
:
-
apt-get update && apt-get install -y wget unzip
-
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
-
unzip sonar-scanner-cli-4.6.2.2472-linux.zip
-
export PATH="$PATH:$(pwd)/sonar-scanner-4.6.2.2472-linux/bin"
-
sonar-scanner -D"sonar.projectKey=SpnPatchLaravel" -D"sonar.sources=." -D"sonar.host.url=https://sonarqube.netbay.co.th/sonarqube" -D"sonar.login=910cc03c818c8884525a2c3f2b1d19cd8d98104f"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment