23 lines
516 B
Plaintext
23 lines
516 B
Plaintext
|
|
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'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|