Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Download stemcell from bosh.io task fixes #241

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sneal
Copy link
Contributor

@sneal sneal commented Nov 29, 2017

I still need to validate this is working end to end in a pipeline. I fixed some missing error checks, messages, etc.

  • Remove API_TOKEN from download-boshio-stemcell task
  • Add fix for copying an empty pivnet-stemcells dir
  • Add correct error message if no stemcells are found
  • Remove Ruby requirement from bosh stemcell task
  • Use wget instead of curl so 404 or other errors fail the task

Unlike pivnet, the API_TOKEN isn't needed for acessing the publicly available bosh.io site.
Although unlikely outside testing, the copy command can fail if the pivnet-stemcells directory is empty. It's also generally a good idea to double quote the strings and keep the original file attributes.
The bosh_io_stemcells array only contains non-Ubuntu stemcells (i.e. CentOS), so the error message should reflect that.
- Use wget instead of curl so 404 or other errors fail the task instead of creating a 0 byte stemcell file.
- Use native bash regex functionality to get the version and stemcell type from the raw stemcell file name.
@pivotal-issuemaster
Copy link

@sneal Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@pivotal-issuemaster
Copy link

@sneal Thank you for signing the Contributor License Agreement!

@jtarchie
Copy link
Contributor

jtarchie commented Apr 9, 2018

Did you ever evaluate that these changes work @sneal? It is a long process to validate ourselves, so it would be nice if someone has done a proper run through, first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants