Skip to content

Commit bf50ede

Browse files
committed
Fix release asset upload URL
1 parent da3cdf4 commit bf50ede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jenkins.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ pipeline
216216
{
217217
GITHUB_CREDS = credentials('github-access-token')
218218
REPO_API_URL = 'https://api.github.com/repos/Graylog2/collector-sidecar'
219+
UPLOAD_API_URL = 'https://uploads.github.com/repos/Graylog2/collector-sidecar'
219220
}
220221

221222
steps
@@ -238,7 +239,7 @@ pipeline
238239
-H "Authorization: token $GITHUB_CREDS" \
239240
-H "Content-Type: application/octet-stream" \
240241
--data-binary "@$file" \
241-
"$REPO_API_URL/releases/$RELEASE_ID/assets?name=$name"
242+
"$UPLOAD_API_URL/releases/$RELEASE_ID/assets?name=$name"
242243
done
243244
'''
244245
}

0 commit comments

Comments
 (0)