Skip to content

Commit c3ad436

Browse files
committed
adapt Jenkinsfile to account for correct PR base branch
1 parent a4710cf commit c3ad436

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
@@ -387,7 +387,7 @@ def gradle(String command, String relativeProjectDir) {
387387
}
388388

389389
def determineSonarqubeGradleCmd(String sonarqubeProjectKey, String currentBranchName, String targetBranchName, String orgName, String projectName, String relativeGitDir) {
390-
String prBaseBranch = targetBranchName == null "dev" : targetBranchName
390+
String prBaseBranch = targetBranchName == null ? "dev" : targetBranchName
391391
switch (currentBranchName) {
392392
case "main":
393393
return "sonarqube -Dsonar.branch.name=main -Dsonar.projectKey=$sonarqubeProjectKey"

0 commit comments

Comments
 (0)