pivotal-cf / pivnet-resource

Concourse Resource to interact with the Tanzu Network API V2 interface.
Apache License 2.0
29 stars 36 forks source link

creating minor version file #24

Closed mmb closed 8 years ago

mmb commented 8 years ago

We read the version file produced by this resource and parse out the minor version to pass to opsmgr gem rake tasks.

For example, extract "1.7" from 1.7.0.0#b1e0a6e424fb4e7a4577dc9977f066de.

Could this resource produce a new file called minor-version that does this for us?

I'd be willing to send a PR.

cf-gitbot commented 8 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/119028663

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

mmb commented 8 years ago

@robdimsdale showed us how to use metadata.json as an easier way to get the version:

jq -r '.Release.Version | split(".")[:2] | join(".")' < metadata.json

At this point it does not makes sense for this resource to write an minor version file because not all versions are semver.