Skip to content

Commit db22e81

Browse files
committed
Do not wrap and fail curl on freeze
1 parent 9117878 commit db22e81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ node('digitalocean && ubuntu-16.04 && 8gb && android-7.0') {
6060
6161
~/bin/repo manifest -r -o manifest.xml
6262
63-
curl -X PUT -H "Authorization: token $GITHUB_TOKEN" \
64-
-d "{\"message\":\"Add $VERSION changes\", \"committer\":{\"name\":\"Jenkins\",\"email\":\"[email protected]\"},\"content\":\"$(echo "$CHANGES" | base64)\"}" \
63+
curl --fail -X PUT -H "Authorization: token $GITHUB_TOKEN" \
64+
-d "{\"message\":\"Add $VERSION changes\", \"committer\":{\"name\":\"Jenkins\",\"email\":\"[email protected]\"},\"content\":\"$(echo "$CHANGES" | base64 -w 0)\"}" \
6565
"https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPO/contents/versions/$VERSION/CHANGES.md"
6666
67-
curl -X PUT -H "Authorization: token $GITHUB_TOKEN" \
68-
-d "{\"message\":\"Add $VERSION manifest\", \"committer\":{\"name\":\"Jenkins\",\"email\":\"[email protected]\"},\"content\":\"$(base64 manifest.xml)\"}" \
67+
curl --fail -X PUT -H "Authorization: token $GITHUB_TOKEN" \
68+
-d "{\"message\":\"Add $VERSION manifest\", \"committer\":{\"name\":\"Jenkins\",\"email\":\"[email protected]\"},\"content\":\"$(base64 -w 0 manifest.xml)\"}" \
6969
"https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPO/contents/versions/$VERSION/manifest.xml"
7070
'''
7171
}

0 commit comments

Comments
 (0)