This commit is contained in:
Semyon Bezrukov 2024-09-11 18:09:51 +03:00
parent d67feb347c
commit af650cc84a

3
Jenkinsfile vendored
View File

@ -94,6 +94,7 @@ pipeline {
stats.repos.each { repo, status ->
pAction = printBranches(repo)
status.primary = (pAction) ? 'success' : 'failure'
status.secondary = 'none'
}
} else if (params.action_type.startsWith('start')) {
@ -362,7 +363,7 @@ def printBranches(String repo) {
'https://'"\$GIT_SERVER"'/api/v1/repos/${repo}/branches' \
-H 'accept: application/json' \
-H 'Authorization: '"\$GITEA_TOKEN"
-w "%{http_code}\n"
-w '%{http_code}'
-o output.json)
echo \$HTTP_CODE
cat output.json