Commit bda97b02 authored by wentao.suo's avatar wentao.suo

fff

parent 3290f9af
......@@ -9,9 +9,9 @@ def _utils() {
}
def sonaar_check(){
def sonaar_check(GIT_REPO_NAME,GIT_BRANCH,currentPath){
_utils().beautyEcho("sonar check +++", "info")
/*
sonarScanner = "/home/quant_group/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar/bin/sonar-scanner"
currentPath = sh (script: 'pwd',returnStdout: true).trim()
git branch: "${GIT_BRANCH}", credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "${GIT_PEPO_SSH_URL}"
......@@ -23,7 +23,7 @@ def sonaar_check(){
-Dsonar.java.binaries=. \
-Dsonar.sources=. \
-Dsonar.projectBaseDir=${currentPath}"
*/
}
......
......@@ -18,6 +18,8 @@ def call(body) {
context:[]
]
def currentPath
/*body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()*/
......@@ -34,8 +36,10 @@ echo "\033[32m############################################\n\
node{
dir(GIT_REPO_NAME){
urrentPath = sh (script: 'pwd',returnStdout: true).trim()
stage("SonarQube Quality Gate"){
def gitRepoName ="${GIT_REPO_NAME}"
_stage.sonaar_check(GIT_REPO_NAME,GIT_BRANCH,currentPath)
}
stage("callback"){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment