Skip to content

Commit 7780bba

Browse files
Attempt 13
1 parent beb317f commit 7780bba

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Jenkinsfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,18 @@ def CheckNightlyTag(githubToken, repoOwner, repoName, expectedHash)
4747
jq -r '.object.sha'
4848
""", true).trim()
4949
//"""
50-
def response = bash("""
50+
def tagCommitHash = bash("""
5151
curl -s \\
5252
-H "Authorization: Bearer ${githubToken}" \\
53-
"https://api.github.com/repos/${repoOwner}/${repoName}/git/refs/tags/nightly"
54-
""", true)
53+
"https://api.github.com/repos/${repoOwner}/${repoName}/git/tags/${tagHash}" |
54+
jq -r '.object.sha'
55+
""", true).trim()
5556
//"""
5657

57-
echo "Response: ${response}"
5858
echo "Current tag hash: ${tagHash}"
59-
60-
if (tagHash == expectedHash) {
59+
echo "Current tag commit hash: ${tagCommitHash}"
60+
echo "expectedHash: ${expectedHash}"
61+
if (tagCommitHash == expectedHash) {
6162
return true
6263
}
6364

0 commit comments

Comments
 (0)