ci: fix Groovy lang.Binding exception (#1566)

Ref #1562
This commit is contained in:
Jos Ahrens
2018-06-16 13:20:18 +02:00
committed by Alexey Sokolov
parent d07674b089
commit 6f109ec6d7
+1 -1
View File
@@ -77,7 +77,7 @@ timestamps {
def pulls = httpRequest consoleLogResponseBody: true, customHeaders: headers, url: "https://api.github.com/repos/${upstream_user}/${upstream_repo}/pulls?head=${my_user}:${my_branch}&base=${upstream_branch}"
pulls = new JsonSlurper().parseText(pulls.content)
if (!pulls) {
def bodyContents = 'Crowdin: https://crowdin.com/project/znc-bouncer\nJenkins Build: ' + build.environment.get('BUILD_URL')
def bodyContents = 'Crowdin: https://crowdin.com/project/znc-bouncer\nJenkins Build: ' + env.BUILD_URL
bodyContents += "\n\nModified locales:\n" + modifiedLocales
bodyContents += "\n\n<details><summary>Modified files</summary>" + gitStatusShort + '</details>'