Skip to content

Commit

Permalink
Debug Jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Carcaramo <lcarcaramo@ibm.com>
  • Loading branch information
lcarcaramo committed Sep 1, 2023
1 parent 8957d6c commit 534e858
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ def publish(
def release_id = sh(
returnStdout: true,
script: (
'curl -f -v -L \\'
+ '-X POST \\'
+ '-H "Accept: application/vnd.github+json" \\'
+ '-H "Authorization: Bearer ${github_access_token}" \\'
+ '-H "X-GitHub-Api-Version: 2022-11-28" \\'
+ 'https://api.github.com/repos/ambitus/pyracf/releases \\'
'curl -f -v -L '
+ '-X POST '
+ '-H "Accept: application/vnd.github+json" '
+ '-H "Authorization: Bearer ${github_access_token}" '
+ '-H "X-GitHub-Api-Version: 2022-11-28" '
+ 'https://api.github.com/repos/ambitus/pyracf/releases '
+ "-d '{"
+ " \"tag_name\": \"${release}\","
+ " \"target_commitish\": \"${git_branch}\","
Expand All @@ -207,16 +207,14 @@ def publish(
echo "Uploading ${wheel} as an asset to ${release} GitHub release..."

sh(
script: (
'curl -f -v -L \\'
+ '-X POST \\'
+ '-H "Accept: application/vnd.github+json" \\'
+ '-H "Authorization: Bearer ${github_access_token}" \\'
+ '-H "X-GitHub-Api-Version: 2022-11-28" \\'
+ '-H "Content-Type: application/octet-stream" \\'
+ "\"https://uploads.github.com/repos/ambitus/pyracf/releases/${release_id}/assets?name=${wheel}\" \\"
+ "--data-binary \"${wheel}\""
)
'curl -f -v -L '
+ '-X POST '
+ '-H "Accept: application/vnd.github+json" '
+ '-H "Authorization: Bearer ${github_access_token}" '
+ '-H "X-GitHub-Api-Version: 2022-11-28" '
+ '-H "Content-Type: application/octet-stream" '
+ "\"https://uploads.github.com/repos/ambitus/pyracf/releases/${release_id}/assets?name=${wheel}\" "
+ "--data-binary \"${wheel}\""
)

sh(
Expand Down

0 comments on commit 534e858

Please sign in to comment.