diff --git a/Jenkinsfile b/Jenkinsfile index cb6acd1..1bc57fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -394,7 +394,7 @@ def unprotectBranch(String repo, String branch) { 'https://\$GIT_SERVER/api/v1/repos/${repo}/branch_protections/${branch}?token=\$GITEA_TOKEN' \ -H 'accept: application/json' \ -H 'Authorization: \$GITEA_TOKEN' - """ + """, returnStatus: true ) == 0 }