add atlas deprecation warnings.
This commit is contained in:
parent
51dcf9ffb1
commit
c03ce222b2
|
@ -183,15 +183,15 @@ func (c *PushCommand) Run(args []string) int {
|
|||
info := &uploadBuildInfo{Type: b.Type}
|
||||
// todo: remove post-migration
|
||||
if b.Type == "vagrant" {
|
||||
c.Ui.Message("\n-----------------------------------------------------------------------------------\n" +
|
||||
"Warning: Vagrant-related functionality will be moved from Terraform Enterprise into \n" +
|
||||
"its own product, Vagrant Cloud. This migration is currently planned for June 27th, \n" +
|
||||
"2017 at 6PM EDT/3PM PDT/10PM UTC. For more information see \n" +
|
||||
c.Ui.Error("\n-----------------------------------------------------------------------------------\n" +
|
||||
"Vagrant-related functionality has been moved from Terraform Enterprise into \n" +
|
||||
"its own product, Vagrant Cloud. For more information see " +
|
||||
"https://www.vagrantup.com/docs/vagrant-cloud/vagrant-cloud-migration.html\n" +
|
||||
"In the meantime, you should activate your Vagrant Cloud account and replace your \n" +
|
||||
"Atlas post-processor with the Vagrant Cloud post-processor. See\n" +
|
||||
"https://www.packer.io/docs/post-processors/vagrant-cloud.html for more details." +
|
||||
"Please replace the Atlas post-processor with the Vagrant Cloud post-processor,\n" +
|
||||
"and see https://www.packer.io/docs/post-processors/vagrant-cloud.html for\n" +
|
||||
"more detail.\n" +
|
||||
"-----------------------------------------------------------------------------------\n")
|
||||
return 1
|
||||
}
|
||||
|
||||
// Determine if we're artifacting this build
|
||||
|
@ -251,6 +251,16 @@ func (c *PushCommand) Run(args []string) int {
|
|||
"Builds: %s\n\n", strings.Join(badBuilds, ", ")))
|
||||
}
|
||||
|
||||
c.Ui.Message("\n-----------------------------------------------------------------------\n" +
|
||||
"Deprecation warning: The Packer and Artifact Registry features of Atlas\n" +
|
||||
"will no longer be actively developed or maintained and will be fully\n" +
|
||||
"decommissioned on Friday, March 30, 2018. Please see our guide on\n" +
|
||||
"building immutable infrastructure with Packer on CI/CD for ideas on\n" +
|
||||
"implementing these features yourself:\n" +
|
||||
"https://www.packer.io/guides/packer-on-cicd/\n" +
|
||||
"-----------------------------------------------------------------------\n",
|
||||
)
|
||||
|
||||
// Start the archiving process
|
||||
r, err := archive.CreateArchive(path, &opts)
|
||||
if err != nil {
|
||||
|
|
|
@ -151,6 +151,17 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
|
|||
"and see https://www.packer.io/docs/post-processors/vagrant-cloud.html for\n" +
|
||||
"more detail.\n")
|
||||
}
|
||||
|
||||
ui.Message("\n-----------------------------------------------------------------------\n" +
|
||||
"Deprecation warning: The Packer and Artifact Registry features of Atlas\n" +
|
||||
"will no longer be actively developed or maintained and will be fully\n" +
|
||||
"decommissioned on Friday, March 30, 2018. Please see our guide on\n" +
|
||||
"building immutable infrastructure with Packer on CI/CD for ideas on\n" +
|
||||
"implementing these features yourself:\n" +
|
||||
"https://www.packer.io/guides/packer-on-cicd/\n" +
|
||||
"-----------------------------------------------------------------------\n",
|
||||
)
|
||||
|
||||
if _, err := p.client.Artifact(p.config.user, p.config.name); err != nil {
|
||||
if err != atlas.ErrNotFound {
|
||||
return nil, false, fmt.Errorf(
|
||||
|
|
Loading…
Reference in New Issue