CLI Artifactory command should allow to provide Principal field to build info
@@ -78,6 +78,7 @@ func createBuildInfo(buildName, buildNumber string, buildInfoRawData utils.Build
if len(env) != 0 {
buildInfo.Properties = env
}
+ buildInfo.artifactoryPrincipal = flags.ArtDetails.User
if vcs != (utils.Vcs{}) {
buildInfo.VcsRevision = vcs.VcsRevision
buildInfo.VcsUrl = vcs.VcsUrl
@@ -141,6 +142,7 @@ type BuildInfo struct {
Modules []*Modules `json:"modules,omitempty"`
Started string `json:"started,omitempty"`
Properties utils.BuildEnv `json:"properties,omitempty"`
+ artifactoryPrincipal string `json:"artifactoryPrincipal,omitempty"`
VcsUrl string `json:"vcsUrl,omitempty"`
VcsRevision string `json:"vcsRevision,omitempty"`
}
