-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
33 lines (32 loc) · 1.09 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pipeline {
agent any
stages {
stage('Cleaning Up WS') {
steps {
cleanWs ()
sh 'git clone https://[email protected]/souvikgh05/notejam-mysql.git'
}
}
stage('Sonarqube') {
environment {
scannerHome = tool 'SonarQubeScanner-4.7.0'
SONARCLOUD_TOKEN = credentials('sonarcloud-token')
}
steps {
withSonarQubeEnv('SonarQubeScanner-4.7.0') {
sh '''
${scannerHome}/bin/sonar-scanner \
-Dsonar.host.url=https://sonarcloud.io/ \
-Dsonar.login=$SONARCLOUD_TOKEN \
-Dsonar.organization=souvikgh05 \
-Dsonar.projectKey=souvikgh05_notejam-mysql \
-Dsonar.java.binaries=build/classes/java/ \
-Dsonar.python.version=3 \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.verbose=true
'''
}
}
}
}
}