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