From be5aef1bf7ac3981fc1f9df53739f6f68b77e369 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Wed, 11 Sep 2024 17:24:58 +0300 Subject: [PATCH] BM9 --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f5d8cb9..34af513 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -358,7 +358,7 @@ def printBranches(String repo) { return sh ( label: "${repo}: branches list", script: """ - curl -sv -X 'GET' \ + curl -sv -f -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 -X 'POST' \ + curl -sv -f -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 -X 'DELETE' \ + curl -sv -f -X 'DELETE' \ 'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branch_protections/${branch}' \ -H 'accept: application/json' \ -H 'Authorization: '"\$GITEA_TOKEN"