This commit is contained in:
mali
2022-10-20 16:53:50 +00:00
parent 7af501d8ec
commit ef589debe0
2 changed files with 44 additions and 0 deletions

22
Jenkinsfile vendored Normal file
View 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'
}
}
}
}
}