Skip to content

Commit 01fcc54

Browse files
Attempt 15
1 parent ac7c01c commit 01fcc54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ def CheckNightlyTag(githubToken, repoOwner, repoName, expectedHash)
4040
"""
4141

4242
while (attempt < maxAttempts) {
43-
def tagHash = bash("""
43+
String tagHash = bash("""
4444
curl -s \\
4545
-H "Authorization: Bearer ${githubToken}" \\
4646
"https://api.github.com/repos/${repoOwner}/${repoName}/git/refs/tags/nightly" |
4747
jq -r '.object.sha'
4848
""", true).trim()
4949
//"""
50-
def tagCommitHash = bash("""
50+
String tagCommitHash = bash("""
5151
curl -s \\
5252
-H "Authorization: Bearer ${githubToken}" \\
5353
"https://api.github.com/repos/${repoOwner}/${repoName}/git/tags/${tagHash}" |
@@ -56,8 +56,8 @@ def CheckNightlyTag(githubToken, repoOwner, repoName, expectedHash)
5656
//"""
5757

5858
echo "Current tag hash: ${tagHash}"
59-
echo "Current tag commit hash: ${tagCommitHash}"
60-
echo "expectedHash: ${expectedHash}"
59+
echo "Current tag commit hash: ${tagCommitHash}, ${tagCommitHash.Length()}"
60+
echo "expectedHash: ${expectedHash}, ${expectedHash.Length()}"
6161
if (tagCommitHash.equals(expectedHash)) {
6262
return true
6363
}

0 commit comments

Comments
 (0)