You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: env_gen.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,7 @@
187
187
| ECR_REPO_NAME_PREFIX | string |test/ | Prefix for ECR repo to be created in does not exist || false |
188
188
| ENABLE_ASYNC_ARGO_CD_INSTALL_DEVTRON_CHART | bool |false | To enable async installation of gitops application || false |
189
189
| ENABLE_ASYNC_INSTALL_DEVTRON_CHART | bool |false | To enable async installation of no-gitops application || false |
190
+
| ENABLE_LINKED_CI_ARTIFACT_COPY | bool |false | Enable copying artifacts from parent CI pipeline to linked CI pipeline during creation || false |
190
191
| EPHEMERAL_SERVER_VERSION_REGEX | string |v[1-9]\.\b(2[3-9]\|[3-9][0-9])\b.*| ephemeral containers support version regex that is compared with k8sServerVersion || false |
impl.logger.Errorw("error in fetching artifacts from parent CI pipeline", "parentCiPipelineId", parentCiPipelineId, "err", err)
2548
+
returnerr
2549
+
}
2550
+
2551
+
iflen(parentArtifacts) ==0 {
2552
+
impl.logger.Infow("No artifacts found in parent CI pipeline", "parentCiPipelineId", parentCiPipelineId)
2553
+
returnnil
2554
+
}
2555
+
2556
+
varchildArtifacts []*repository.CiArtifact
2557
+
fori:=len(parentArtifacts); i>0; i-- {
2558
+
parentArtifact:=parentArtifacts[i-1] //reversing order into new array because postgres will save the array as it is thus causing our actual order to reverse
2559
+
childArtifact:=&repository.CiArtifact{
2560
+
Image: parentArtifact.Image,
2561
+
ImageDigest: parentArtifact.ImageDigest,
2562
+
MaterialInfo: parentArtifact.MaterialInfo,
2563
+
DataSource: parentArtifact.DataSource,
2564
+
PipelineId: childCiPipelineId,
2565
+
ParentCiArtifact: parentArtifact.Id,
2566
+
IsArtifactUploaded: parentArtifact.IsArtifactUploaded, // for backward compatibility
EnableLinkedCiArtifactCopybool`env:"ENABLE_LINKED_CI_ARTIFACT_COPY" envDefault:"false" description:"Enable copying artifacts from parent CI pipeline to linked CI pipeline during creation"`
69
+
LinkedCiArtifactCopyLimitint`env:"LINKED_CI_ARTIFACT_COPY_LIMIT" envDefault:"10" description:"Maximum number of artifacts to copy from parent CI pipeline to linked CI pipeline"`
0 commit comments