Skip to content

Commit

Permalink
fixing plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushm committed Sep 20, 2024
1 parent aff5f63 commit 2692cd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/eventProcessor/in/WorkflowEventProcessorService.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func (impl *WorkflowEventProcessorImpl) SubscribeCDStageCompleteEvent() error {
pluginArtifacts := make(map[string][]string)
if cdStageCompleteEvent.PluginArtifacts != nil {
pluginArtifacts = cdStageCompleteEvent.PluginArtifacts.GetRegistryToUniqueContainerArtifactDataMapping()
globalUtil.MergeMaps(pluginArtifacts, cdStageCompleteEvent.PluginRegistryArtifactDetails)
}
globalUtil.MergeMaps(pluginArtifacts, cdStageCompleteEvent.PluginRegistryArtifactDetails)

impl.logger.Debugw("received post stage success event for workflow runner ", "wfId", strconv.Itoa(wfr.Id))
err = impl.workflowDagExecutor.HandlePostStageSuccessEvent(triggerContext, wfr, wfr.CdWorkflowId, cdStageCompleteEvent.CdPipelineId, cdStageCompleteEvent.TriggeredBy, pluginArtifacts)
Expand Down Expand Up @@ -646,8 +646,8 @@ func (impl *WorkflowEventProcessorImpl) BuildCiArtifactRequest(event bean.CiComp
pluginArtifacts := make(map[string][]string)
if event.PluginArtifacts != nil {
pluginArtifacts = event.PluginArtifacts.GetRegistryToUniqueContainerArtifactDataMapping()
globalUtil.MergeMaps(pluginArtifacts, event.PluginRegistryArtifactDetails)
}
globalUtil.MergeMaps(pluginArtifacts, event.PluginRegistryArtifactDetails)

request := &wrokflowDagBean.CiArtifactWebhookRequest{
Image: event.DockerImage,
Expand Down
3 changes: 1 addition & 2 deletions pkg/pipeline/pipelineStageVariableParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ type RefPluginName = string

const (
COPY_CONTAINER_IMAGE RefPluginName = "Copy container image"
COPY_CONTAINER_IMAGE_VERSION_V1 = "v1.0.0"
COPY_CONTAINER_IMAGE_VERSION_V2 = "v1.1.0"
COPY_CONTAINER_IMAGE_VERSION_V1 = "1.0.0"
EMPTY_STRING = " "
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/dag/WorkflowDagExecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ func (impl *WorkflowDagExecutorImpl) HandlePreStageSuccessEvent(triggerContext t
pluginArtifacts := make(map[string][]string)
if cdStageCompleteEvent.PluginArtifacts != nil {
pluginArtifacts = cdStageCompleteEvent.PluginArtifacts.GetRegistryToUniqueContainerArtifactDataMapping()
util4.MergeMaps(pluginArtifacts, cdStageCompleteEvent.PluginRegistryArtifactDetails)
}
util4.MergeMaps(pluginArtifacts, cdStageCompleteEvent.PluginRegistryArtifactDetails)

err = impl.deactivateUnusedPaths(wfRunner.ImagePathReservationIds, pluginArtifacts)
if err != nil {
Expand Down

0 comments on commit 2692cd9

Please sign in to comment.