SQ 9.7
This commit is contained in:
parent
7af501d8ec
commit
ef589debe0
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
def MAVEN_IMAGE = 'maven:3.8.2-openjdk-11-slim'
|
||||||
|
def SQ_SCANNER = 'sonarsource/sonar-scanner-cli'
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Static Code Analysis') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image "${SQ_SCANNER}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
withSonarQubeEnv('cicd') {
|
||||||
|
echo '################# SQ ###################'
|
||||||
|
sh 'sonar-scanner'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
22
sonar-project.properties
Normal file
22
sonar-project.properties
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# must be unique in a given SonarQube instance
|
||||||
|
sonar.projectKey=mb:sq-maven-multimodule
|
||||||
|
|
||||||
|
# --- optional properties ---
|
||||||
|
|
||||||
|
# defaults to project key
|
||||||
|
sonar.projectName=Multimodule Maven Project
|
||||||
|
# defaults to 'not provided'
|
||||||
|
#sonar.projectVersion=1.0
|
||||||
|
|
||||||
|
# Path is relative to the sonar-project.properties file. Defaults to .
|
||||||
|
#sonar.sources=.
|
||||||
|
|
||||||
|
# Encoding of the source code. Default is default system encoding
|
||||||
|
#sonar.sourceEncoding=UTF-8
|
||||||
|
sonar.python.version=3.7, 3.8, 3.9
|
||||||
|
sonar.links.homepage=http://cicd.bayhan.ca
|
||||||
|
sonar.links.ci=https://jenkins.bayhan.ca/job/sq-maven-multimodule
|
||||||
|
sonar.links.scm=https://forge.bayhan.ca/mali/sq-maven-multimodule
|
||||||
|
|
||||||
|
sonar.host.url=https://sq.bayhan.ca
|
||||||
|
sonar.login=b8ad156fa409136e8c2c174522836dbd02cf7cc7
|
||||||
Loading…
x
Reference in New Issue
Block a user