Skip to content

Commit 03655ee

Browse files
committed
Add PropsFlag to version release and include artifact properties in promote request
1 parent 059415f commit 03655ee

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

apptrust/commands/flags.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ var commandFlags = map[string][]string{
108108
DryRunFlag,
109109
ExcludeReposFlag,
110110
IncludeReposFlag,
111+
PropsFlag,
111112
},
112113
VersionRelease: {
113114
url,

apptrust/commands/version/promote_app_version_cmd.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,17 @@ func (pv *promoteAppVersionCommand) buildRequestPayload(ctx *components.Context)
7575
return nil, err
7676
}
7777

78+
artifactProps, err := ParseArtifactProps(ctx)
79+
if err != nil {
80+
return nil, err
81+
}
82+
7883
return &model.PromoteAppVersionRequest{
79-
Stage: stage,
80-
PromotionType: promotionType,
81-
IncludedRepositoryKeys: includedRepos,
82-
ExcludedRepositoryKeys: excludedRepos,
84+
Stage: stage,
85+
PromotionType: promotionType,
86+
IncludedRepositoryKeys: includedRepos,
87+
ExcludedRepositoryKeys: excludedRepos,
88+
ArtifactAdditionalProperties: artifactProps,
8389
}, nil
8490
}
8591

0 commit comments

Comments
 (0)