BM9
This commit is contained in:
parent
d67feb347c
commit
af650cc84a
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user