Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ciStages.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func runCIStages(ciCdRequest *helper.CiCdTriggerEvent) (artifactUploaded bool, e
log.Println(util.DEVTRON, " git")
ciBuildConfigBean := ciCdRequest.CommonWorkflowRequest.CiBuildConfig
buildSkipEnabled := ciBuildConfigBean != nil && ciBuildConfigBean.CiBuildType == helper.BUILD_SKIP_BUILD_TYPE
skipCheckout := ciBuildConfigBean != nil && ciBuildConfigBean.PipelineType == helper.CI_JOB
skipCheckout := ciBuildConfigBean != nil && (ciBuildConfigBean.PipelineType == helper.CI_JOB && !ciCdRequest.CommonWorkflowRequest.IsGitRequired)
if !skipCheckout {
err = helper.CloneAndCheckout(ciCdRequest.CommonWorkflowRequest.CiProjectDetails)
}
Expand Down
1 change: 1 addition & 0 deletions helper/EventHelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ type CommonWorkflowRequest struct {
RegistryCredentialMap map[string]RegistryCredentials `json:"registryCredentialMap"`
PluginArtifactStage string `json:"pluginArtifactStage"`
PushImageBeforePostCI bool `json:"pushImageBeforePostCI"`
IsGitRequired bool `json:"isGitRequired"`
}

func (c *CommonWorkflowRequest) GetCloudHelperBaseConfig(blobStorageObjectType string) *util.CloudHelperBaseConfig {
Expand Down