|
|
|
|
@ -46,8 +46,8 @@ type Config struct {
|
|
|
|
|
|
|
|
|
|
ctx interpolate.Context
|
|
|
|
|
user, name string
|
|
|
|
|
buildId int
|
|
|
|
|
compileId int
|
|
|
|
|
buildId int
|
|
|
|
|
compileId int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PostProcessor struct {
|
|
|
|
|
@ -159,13 +159,13 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
opts := &atlas.UploadArtifactOpts{
|
|
|
|
|
User: p.config.user,
|
|
|
|
|
Name: p.config.name,
|
|
|
|
|
Type: p.config.Type,
|
|
|
|
|
ID: artifact.Id(),
|
|
|
|
|
Metadata: p.metadata(artifact),
|
|
|
|
|
BuildID: p.config.buildId,
|
|
|
|
|
CompileID: p.config.compileId,
|
|
|
|
|
User: p.config.user,
|
|
|
|
|
Name: p.config.name,
|
|
|
|
|
Type: p.config.Type,
|
|
|
|
|
ID: artifact.Id(),
|
|
|
|
|
Metadata: p.metadata(artifact),
|
|
|
|
|
BuildID: p.config.buildId,
|
|
|
|
|
CompileID: p.config.compileId,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if fs := artifact.Files(); len(fs) > 0 {
|
|
|
|
|
|