Skip to content

Commit

Permalink
fix: Invalidate cache configure bulk build (#3319)
Browse files Browse the repository at this point in the history
* invalidateCache flag made configurable

* fix
  • Loading branch information
gireesh-naidu authored Apr 26, 2023
1 parent 4467150 commit b857d25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/bulkAction/BulkUpdateService.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ func (impl BulkUpdateServiceImpl) BulkBuildTrigger(request *BulkApplicationForEn
PipelineId: ciPipelineId,
CiPipelineMaterial: ciMaterials,
TriggeredBy: request.UserId,
InvalidateCache: false,
InvalidateCache: request.InvalidateCache,
}
latestCommitsMap[ciPipelineId] = ciTriggerRequest
ciCompletedStatus[ciPipelineId] = false
Expand Down
9 changes: 5 additions & 4 deletions pkg/bulkAction/bean.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ type CmAndSecretBulkUpdateResponse struct {
}

type BulkApplicationForEnvironmentPayload struct {
AppIdIncludes []int `json:"appIdIncludes,omitempty"`
AppIdExcludes []int `json:"appIdExcludes,omitempty"`
EnvId int `json:"envId"`
UserId int32 `json:"-"`
AppIdIncludes []int `json:"appIdIncludes,omitempty"`
AppIdExcludes []int `json:"appIdExcludes,omitempty"`
EnvId int `json:"envId"`
UserId int32 `json:"-"`
InvalidateCache bool `json:"invalidateCache"`
}

type BulkApplicationForEnvironmentResponse struct {
Expand Down

0 comments on commit b857d25

Please sign in to comment.