Skip to content

Commit

Permalink
Fix release asset upload URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Dec 5, 2022
1 parent da3cdf4 commit bf50ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jenkins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ pipeline
{
GITHUB_CREDS = credentials('github-access-token')
REPO_API_URL = 'https://api.github.com/repos/Graylog2/collector-sidecar'
UPLOAD_API_URL = 'https://uploads.github.com/repos/Graylog2/collector-sidecar'
}

steps
Expand All @@ -238,7 +239,7 @@ pipeline
-H "Authorization: token $GITHUB_CREDS" \
-H "Content-Type: application/octet-stream" \
--data-binary "@$file" \
"$REPO_API_URL/releases/$RELEASE_ID/assets?name=$name"
"$UPLOAD_API_URL/releases/$RELEASE_ID/assets?name=$name"
done
'''
}
Expand Down

0 comments on commit bf50ede

Please sign in to comment.