Skip to content

Commit

Permalink
Changed api option componentToDeploy to array
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Jan 19, 2024
1 parent a7e32ae commit 3b6d3ba
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
13 changes: 5 additions & 8 deletions cmd/createDeployPipelineJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"errors"
"fmt"
"regexp"
"strings"

log "github.com/sirupsen/logrus"

Expand Down Expand Up @@ -98,13 +97,11 @@ Examples:
triggerPipelineParams := application.NewTriggerPipelineDeployParams()
triggerPipelineParams.SetAppName(*appName)
parametersDeploy := models.PipelineParametersDeploy{
ToEnvironment: targetEnvironment,
ImageTagNames: imageTagNames,
TriggeredBy: triggeredByUser,
CommitID: commitID,
}
if components := strings.Join(componentsToDeploy, ","); len(components) > 0 {
parametersDeploy.Components = components
ToEnvironment: targetEnvironment,
ImageTagNames: imageTagNames,
TriggeredBy: triggeredByUser,
CommitID: commitID,
ComponentsToDeploy: componentsToDeploy,
}
triggerPipelineParams.SetPipelineParametersDeploy(&parametersDeploy)

Expand Down
3 changes: 3 additions & 0 deletions generated-client/models/component.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions generated-client/models/job.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions generated-client/models/pipeline_parameters_deploy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b6d3ba

Please sign in to comment.