diff --git a/Jenkinsfile b/Jenkinsfile index 4841b08..2e7b45f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -358,7 +358,7 @@ def printBranches(String repo) { return sh ( label: "${repo}: branches list", script: """ - curl -sv -f -X 'GET' \ + curl -sv -X 'GET' \ 'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branches' \ -H 'accept: application/json' \ -H 'Authorization: '"\$GITEA_TOKEN" | \ @@ -375,7 +375,7 @@ def protectBranch(String repo, String branch) { echo '{ "branch_name": "master" }' | \ - curl -sv -f -X 'POST' \ + curl -sv -X 'POST' \ 'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections' \ -H 'accept: application/json' \ -H 'Authorization: '"\$GITEA_TOKEN" \ @@ -390,7 +390,7 @@ def unprotectBranch(String repo, String branch) { return sh ( label: "${repo}: unprotect ${branch}", script: """ - curl -sv -f -X 'DELETE' \ + curl -sv -X 'DELETE' \ 'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections/${branch}' \ -H 'accept: application/json' \ -H 'Authorization: '"\$GITEA_TOKEN"