asd
This commit is contained in:
parent
be6e4e4f55
commit
899f8e0e44
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -39,16 +39,21 @@ pipeline {
|
||||
// docker:end
|
||||
|
||||
// maven:start
|
||||
agent {
|
||||
docker {
|
||||
image "${MAVEN_IMAGE}"
|
||||
}
|
||||
agent any
|
||||
environment {
|
||||
SCANNER_HOME = tool 'sonar-scanner'
|
||||
}
|
||||
#agent {
|
||||
# docker {
|
||||
# image "${MAVEN_IMAGE}"
|
||||
# }
|
||||
#}
|
||||
|
||||
steps {
|
||||
withSonarQubeEnv('cicd') {
|
||||
echo '################# MAVEN ###################'
|
||||
sh 'mvn sonar:sonar'
|
||||
#sh 'mvn sonar:sonar'
|
||||
sh "${SCANNER_HOME}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
// maven:end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user