diff --git a/pkg/bulkAction/BulkUpdateService.go b/pkg/bulkAction/BulkUpdateService.go index 0be2a2b951..d678d1a3b0 100644 --- a/pkg/bulkAction/BulkUpdateService.go +++ b/pkg/bulkAction/BulkUpdateService.go @@ -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 diff --git a/pkg/bulkAction/bean.go b/pkg/bulkAction/bean.go index 712e8eb930..54e73bd015 100644 --- a/pkg/bulkAction/bean.go +++ b/pkg/bulkAction/bean.go @@ -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 {