Skip to content

Commit 19d086d

Browse files
committed
Trying to print stuff
1 parent 608946e commit 19d086d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ def resolveBranchName(String featureBranchPRMinusNo, String orgName, String repo
626626
// curl the repo based on the feature branch no to get the branch information
627627
/// Note: only works for public repos! Otherwise credentials needs to be passed
628628
def curlUrl = "set +x && curl -s https://api.github.com/repos/" + orgName + "/" + repoName + "/pulls/" + prNo
629-
String response = sh(script: curlUrl, returnStdout: true)
630-
println response
629+
println(sh(script: curlUrl, returnStdout: true))
630+
String response = ""
631631
def jsonResponse = readJSON text: response
632632
def branchName = jsonResponse.head.ref
633633
// def matcher = response =~ /\"label\":\s\"(.+)\"/

0 commit comments

Comments
 (0)