Mix up the pipeline list between ks and Jenkins

Technically we should take the Pipeline list from ks or mixup the instead of only taking it from Jenkins. Because we always manipulate Pipeline from ks.

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-11-26 15:18:49 +08:00
parent a314b31bf0
commit 3d12019e23
4 changed files with 83 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ type Pipeline struct {
NumberOfFolders int `json:"numberOfFolders,omitempty" description:"number of folders"`
NumberOfPipelines int `json:"numberOfPipelines,omitempty" description:"number of pipelines"`
PipelineFolderNames []interface{} `json:"pipelineFolderNames,omitempty" description:"pipeline folder names"`
WeatherScore int `json:"weatherScore,omitempty" description:"the score to description the result of pipeline activity"`
WeatherScore int `json:"weatherScore" description:"the score to description the result of pipeline activity"`
BranchNames []string `json:"branchNames,omitempty" description:"branch names"`
NumberOfFailingBranches int `json:"numberOfFailingBranches,omitempty" description:"number of failing branches"`
NumberOfFailingPullRequests int `json:"numberOfFailingPullRequests,omitempty" description:"number of failing pull requests"`