Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for validation of signed pipelines #853

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Updated README suggestions for signed pipelines
Co-authored-by: Yahav Itzhak <yahavi@users.noreply.github.com>
bhanurp and yahavi authored Nov 24, 2023
commit 9bfde919a19a87a94c75ae9afce20383e7ff851a
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -2363,13 +2363,21 @@ err := pipelinesManager.CancelRun(runID)

```go
bhanurp marked this conversation as resolved.
Show resolved Hide resolved
// artifactType describes how is the artifact information stored in artifactory
// artifactType can be artifact, buildInfo, releaseBundle
// artifactType can be one of Artifact, BuildInfo, or ReleaseBundle
artifactTypeInfo := ArtifactTypeInfo{}
artifactTypeInfo.ArtifactType := "buildInfo"

// Option 1: Artifact
artifactType := services.Artifact
artifactTypeInfo.ArtifactPath := "go-app/myApp"

// Option 2: Build Info
artifactType := services.BuildInfo
artifactTypeInfo.BuildName := "appBuild"
artifactTypeInfo.BuildNumber := "31"
artifactTypeInfo.ProjectKey := "default"
artifactTypeInfo.ArtifactPath := "go-app/myApp"

// Option 3: Release Bundle
artifactType := services.ReleaseBundle
artifactTypeInfo.RbName := "artifactory"
artifactTypeInfo.RbVersion := "7.53.1"
err := pipelinesManager.ValidateSignedPipelines(artifactTypeInfo, artifactType)