Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05815cf1be | |||
| 08937da092 | |||
| bc7dd8e872 | |||
| 25a5b9733a | |||
|
|
ce9ff1438b | ||
|
|
de33d89ba7 | ||
|
|
899f8e0e44 | ||
|
|
be6e4e4f55 |
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -11,7 +11,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
git 'https://github.com/mabayhan/sonarqubejava'
|
git 'https://forge.bayhan.ca/mali/sonarqubejava'
|
||||||
sh 'mvn -Dmaven.test.failure.ignore=true clean package'
|
sh 'mvn -Dmaven.test.failure.ignore=true clean package'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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-4.7'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
//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
|
||||||
|
|||||||
3
sonar-project.properties
Normal file
3
sonar-project.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sonar.projectKey=Test-1
|
||||||
|
sonar.host.url=https://sq.bayhan.ca
|
||||||
|
sonar.login=sqp_e927efa8e9e9e1162bb78a6f2374edde85516819
|
||||||
Loading…
x
Reference in New Issue
Block a user