diff --git a/Jenkinsfile b/Jenkinsfile index d0e71b4..3a448b2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -373,7 +373,7 @@ def protectBranch(String repo, String branch) { label: "${repo}: protect ${branch}", script: """ echo '{ - "branch_name": "master" + "branch_name": "${branch}" }' | \ curl -s -X 'POST' \ 'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections' \