Skip to content
Snippets Groups Projects
Commit 132df27b authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

Debugging

- tee
- jq --raw
parent c9eb00a7
Branches
Tags v1567181636
No related merge requests found
Pipeline #16549 waiting for manual action
...@@ -38,7 +38,7 @@ git push -f --tags ...@@ -38,7 +38,7 @@ git push -f --tags
echo "END OF PUSH" echo "END OF PUSH"
echo "BEGIN UPLOAD" echo "BEGIN UPLOAD"
UPLOADED_FILE_URL="$(curl --request POST --header "Private-Token: ${MY_TOKEN}" --form "file=@README.pdf" "https://gitlab.epfl.ch/api/v4/projects/1298/uploads" | jq .url)" UPLOADED_FILE_URL="$(curl --request POST --header "Private-Token: ${MY_TOKEN}" --form "file=@README.pdf" "https://gitlab.epfl.ch/api/v4/projects/$PROJECT_ID/uploads" | tee /dev/stderr | jq --raw .url)"
echo "END UPLOAD" echo "END UPLOAD"
echo "BEGIN POST RELEASE" echo "BEGIN POST RELEASE"
...@@ -48,7 +48,7 @@ for retry in $(seq 1 5); do ...@@ -48,7 +48,7 @@ for retry in $(seq 1 5); do
--header "Private-Token: ${MY_TOKEN}" \ --header "Private-Token: ${MY_TOKEN}" \
--data '{"name": "New README release", "tag_name": "'${RELEASE_V}'", "description": "Release with the PDF [README.pdf]('${UPLOADED_FILE_URL}')"}' \ --data '{"name": "New README release", "tag_name": "'${RELEASE_V}'", "description": "Release with the PDF [README.pdf]('${UPLOADED_FILE_URL}')"}' \
"https://gitlab.epfl.ch/api/v4/projects/'${PROJECT_ID}'/releases" \ "https://gitlab.epfl.ch/api/v4/projects/'${PROJECT_ID}'/releases" \
| jq -e ".created_at" | tee /dev/stderr | jq -e ".created_at"
then then
break break
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment