Skip to content

Commit

Permalink
Merge pull request #329 from JohnNiang/bug/ignore-weather-score
Browse files Browse the repository at this point in the history
Fix Pipeline WeatherScore error based on gitlab
  • Loading branch information
ks-ci-bot committed Oct 22, 2021
2 parents 9727751 + 70428be commit e20f3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/models/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/jenkins-zh/jenkins-client/pkg/job"

// Metadata holds some of pipeline fields that are only things we needed instead of whole job.Pipeline.
type Metadata struct {
WeatherScore int `json:"weatherScore,omitempty"`
WeatherScore int `json:"weatherScore"`
EstimatedDurationInMillis int64 `json:"estimatedDurationInMillis,omitempty"`
Parameters []job.ParameterDefinition `json:"parameters,omitempty"`
Name string `json:"name,omitempty"`
Expand All @@ -26,7 +26,7 @@ type Metadata struct {
// Branch contains branch metadata, like branch and pull request, and latest PipelineRun.
type Branch struct {
Name string `json:"name,omitempty"`
WeatherScore int `json:"weatherScore,omitempty"`
WeatherScore int `json:"weatherScore"`
Disabled bool `json:"disabled,omitempty"`
LatestRun *LatestRun `json:"latestRun,omitempty"`
Branch *job.Branch `json:"branch,omitempty"`
Expand Down

0 comments on commit e20f3ba

Please sign in to comment.