Skip to content

Commit b857d25

Browse files
fix: Invalidate cache configure bulk build (#3319)
* invalidateCache flag made configurable * fix
1 parent 4467150 commit b857d25

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pkg/bulkAction/BulkUpdateService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ func (impl BulkUpdateServiceImpl) BulkBuildTrigger(request *BulkApplicationForEn
13791379
PipelineId: ciPipelineId,
13801380
CiPipelineMaterial: ciMaterials,
13811381
TriggeredBy: request.UserId,
1382-
InvalidateCache: false,
1382+
InvalidateCache: request.InvalidateCache,
13831383
}
13841384
latestCommitsMap[ciPipelineId] = ciTriggerRequest
13851385
ciCompletedStatus[ciPipelineId] = false

pkg/bulkAction/bean.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ type CmAndSecretBulkUpdateResponse struct {
8282
}
8383

8484
type BulkApplicationForEnvironmentPayload struct {
85-
AppIdIncludes []int `json:"appIdIncludes,omitempty"`
86-
AppIdExcludes []int `json:"appIdExcludes,omitempty"`
87-
EnvId int `json:"envId"`
88-
UserId int32 `json:"-"`
85+
AppIdIncludes []int `json:"appIdIncludes,omitempty"`
86+
AppIdExcludes []int `json:"appIdExcludes,omitempty"`
87+
EnvId int `json:"envId"`
88+
UserId int32 `json:"-"`
89+
InvalidateCache bool `json:"invalidateCache"`
8990
}
9091

9192
type BulkApplicationForEnvironmentResponse struct {

0 commit comments

Comments
 (0)