BM6
This commit is contained in:
parent
59752f6b7a
commit
74276d0c45
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -391,7 +391,7 @@ def unprotectBranch(String repo, String branch) {
|
|||||||
label: "${repo}: unprotect ${branch}",
|
label: "${repo}: unprotect ${branch}",
|
||||||
script: """
|
script: """
|
||||||
curl -s -X 'DELETE' \
|
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 'accept: application/json' \
|
||||||
-H 'Authorization: token '"\$GITEA_TOKEN"
|
-H 'Authorization: token '"\$GITEA_TOKEN"
|
||||||
""",
|
""",
|
||||||
|
Loading…
Reference in New Issue
Block a user