This commit is contained in:
Semyon Bezrukov 2024-09-11 18:40:46 +03:00
parent e6ae1f7f74
commit 33e93dd65c

2
Jenkinsfile vendored
View File

@ -402,6 +402,8 @@ def unprotectBranch(String repo, String branch) {
-H 'Authorization: token '"\$GITEA_TOKEN" \
-w '%{http_code}' \
-o output.json)
jq '.' output.json
test \$HTTP_CODE -eq 204 || test \$HTTP_CODE -eq 404
""",
returnStatus: true
) == 0