Compare commits

...

8 Commits

Author SHA1 Message Date
05815cf1be Update 'sonar-project.properties' 2022-09-13 13:56:21 -07:00
08937da092 Delete 'sonar.properties' 2022-09-13 13:56:05 -07:00
bc7dd8e872 Add 'sonar-project.properties' 2022-09-13 13:55:56 -07:00
25a5b9733a Add 'sonar.properties' 2022-09-13 13:55:11 -07:00
mali
ce9ff1438b asd 2022-03-17 22:57:51 +00:00
mali
de33d89ba7 asd 2022-03-17 22:46:10 +00:00
mali
899f8e0e44 asd 2022-03-17 22:44:43 +00:00
Mali Bayhan
be6e4e4f55 master- Sync Repo 2021-12-10 11:37:31 -08:00
2 changed files with 14 additions and 6 deletions

17
Jenkinsfile vendored
View File

@ -11,7 +11,7 @@ pipeline {
}
}
steps {
git 'https://github.com/mabayhan/sonarqubejava'
git 'https://forge.bayhan.ca/mali/sonarqubejava'
sh 'mvn -Dmaven.test.failure.ignore=true clean package'
}
@ -39,16 +39,21 @@ pipeline {
// docker:end
// maven:start
agent {
docker {
image "${MAVEN_IMAGE}"
}
agent any
environment {
SCANNER_HOME = tool 'sonar-scanner-4.7'
}
//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

3
sonar-project.properties Normal file
View File

@ -0,0 +1,3 @@
sonar.projectKey=Test-1
sonar.host.url=https://sq.bayhan.ca
sonar.login=sqp_e927efa8e9e9e1162bb78a6f2374edde85516819