BM7
This commit is contained in:
parent
74276d0c45
commit
bbe929fce2
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -373,7 +373,7 @@ def protectBranch(String repo, String branch) {
|
|||||||
label: "${repo}: protect ${branch}",
|
label: "${repo}: protect ${branch}",
|
||||||
script: """
|
script: """
|
||||||
echo '{
|
echo '{
|
||||||
"branch_name": "master"
|
"branch_name": "${branch}"
|
||||||
}' | \
|
}' | \
|
||||||
curl -s -X 'POST' \
|
curl -s -X 'POST' \
|
||||||
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections' \
|
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections' \
|
||||||
|
Loading…
Reference in New Issue
Block a user