This commit is contained in:
Semyon Bezrukov 2024-09-11 17:45:44 +03:00
parent 59752f6b7a
commit 74276d0c45

2
Jenkinsfile vendored
View File

@ -391,7 +391,7 @@ def unprotectBranch(String repo, String branch) {
label: "${repo}: unprotect ${branch}",
script: """
curl -s -X 'DELETE' \
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections/${branch}' \
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections/${URLEncoder.encode(branch)}' \
-H 'accept: application/json' \
-H 'Authorization: token '"\$GITEA_TOKEN"
""",