This commit is contained in:
Semyon Bezrukov 2024-09-11 18:11:23 +03:00
parent af650cc84a
commit d436c80797

4
Jenkinsfile vendored
View File

@ -362,8 +362,8 @@ def printBranches(String repo) {
HTTP_CODE=\$(curl -s -X 'GET' \
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branches' \
-H 'accept: application/json' \
-H 'Authorization: '"\$GITEA_TOKEN"
-w '%{http_code}'
-H 'Authorization: '"\$GITEA_TOKEN" \
-w '%{http_code}' \
-o output.json)
echo \$HTTP_CODE
cat output.json