Skip to content

Commit 2246f1b

Browse files
committed
fixing error
1 parent 848aeb8 commit 2246f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pipeline {
3333

3434
sonar_org = 'oracle'
3535
sonar_project_key = "${sonar_org}_weblogic-toolkit-ui"
36+
sonar_branch = sh(returnStdout: true, script: "echo ${env.GIT_BRANCH} | awk -F/ '{ print $2 }'").trim()
3637
}
3738
stages {
3839
stage('Compute file version number') {
@@ -149,7 +150,6 @@ pipeline {
149150
jdk "JDK 11.0.9"
150151
}
151152
environment {
152-
sonar_branch = sh(returnStdout: true, script: "echo ${GIT_BRANCH} | awk -F/ '{ print $2 }'").trim()
153153
sonarscanner_config_file = "${sonarscanner_install_dir}/conf/sonar-scanner.properties"
154154
electron_coverage = "${WORKSPACE}/electron/coverage/lcov.info"
155155
webui_coverage = "${WORKSPACE}/webui/coverage/lcov.info"

0 commit comments

Comments
 (0)