BM7
This commit is contained in:
parent
e6ae1f7f74
commit
33e93dd65c
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -402,6 +402,8 @@ def unprotectBranch(String repo, String branch) {
|
|||||||
-H 'Authorization: token '"\$GITEA_TOKEN" \
|
-H 'Authorization: token '"\$GITEA_TOKEN" \
|
||||||
-w '%{http_code}' \
|
-w '%{http_code}' \
|
||||||
-o output.json)
|
-o output.json)
|
||||||
|
jq '.' output.json
|
||||||
|
test \$HTTP_CODE -eq 204 || test \$HTTP_CODE -eq 404
|
||||||
""",
|
""",
|
||||||
returnStatus: true
|
returnStatus: true
|
||||||
) == 0
|
) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user