Skip to content

Commit beb317f

Browse files
Attempt 12
1 parent 6ca498e commit beb317f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Jenkinsfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def SetGithubStatus(githubToken, context, targetUrl, desc, status, repoOwner, re
2626

2727
def CheckNightlyTag(githubToken, repoOwner, repoName, expectedHash)
2828
{
29-
def maxAttempts = 30 // 5 minutes with 10-second intervals
29+
//def maxAttempts = 30 // 5 minutes with 10-second intervals
30+
def maxAttempts = 2 // 5 minutes with 10-second intervals
3031
def attempt = 0
3132

3233
// Install jq if not already installed
@@ -45,7 +46,15 @@ def CheckNightlyTag(githubToken, repoOwner, repoName, expectedHash)
4546
"https://api.github.com/repos/${repoOwner}/${repoName}/git/refs/tags/nightly" |
4647
jq -r '.object.sha'
4748
""", true).trim()
49+
//"""
50+
def response = bash("""
51+
curl -s \\
52+
-H "Authorization: Bearer ${githubToken}" \\
53+
"https://api.github.com/repos/${repoOwner}/${repoName}/git/refs/tags/nightly"
54+
""", true)
55+
//"""
4856

57+
echo "Response: ${response}"
4958
echo "Current tag hash: ${tagHash}"
5059

5160
if (tagHash == expectedHash) {

0 commit comments

Comments
 (0)