From 33e93dd65ca6a0028d0a4f736c2f57e2aee1e044 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Wed, 11 Sep 2024 18:40:46 +0300 Subject: [PATCH] BM7 --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5c67b3f..c4bc28d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -402,6 +402,8 @@ def unprotectBranch(String repo, String branch) { -H 'Authorization: token '"\$GITEA_TOKEN" \ -w '%{http_code}' \ -o output.json) + jq '.' output.json + test \$HTTP_CODE -eq 204 || test \$HTTP_CODE -eq 404 """, returnStatus: true ) == 0