How to install old component version

3,995 views
Skip to first unread message

João Luís

unread,
May 4, 2015, 10:25:58 AM5/4/15
to google-c...@googlegroups.com
Hi,

When we list components (i.g. gcloud components list --show-version) it shows the installed and the latest versions available.
How to install old component version?

Some background on why we need to install old component versions.
We build images using packer and upload them to gcloud.
These images are used to create jenkins slaves on demand, these jenkins slaves are used to build and deploy apps to appengine and have several types of software (.i.g. docker, rvm, jruby, maven,...).
We need to install old components version, to have the guarantee that we aren't going to brake the jenkins job when updating an image (the most frequent changes aren't the upgrade of gcloud).
  

Best regards

Valentin Stanciu

unread,
May 4, 2015, 10:42:56 AM5/4/15
to João Luís, google-c...@googlegroups.com
You can pin the cloud SDK to a specific version.

Download a specific version:
export CLOUDSDK_COMPONENT_MANAGER_FIXED_SDK_VERSION=0.9.57

Pin a specific version:
gcloud config set component_manager/fixed_sdk_version 0.9.57

This in turn should pin the components too.
I am not exactly sure how to pin only 1 component.

Valentin


--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sdk/8f216bc6-3141-4d97-9a74-e0a18a002ccf%40googlegroups.com.

Zachary Newman

unread,
Mar 17, 2016, 10:43:10 AM3/17/16
to google-cloud-sdk
The recommended way to get a specific version has changed:

If you need a specific version, we recommend grabbing one of the static archives: https://cloud.google.com/sdk/downloads#versioned
You can get older versions from here: https://storage.cloud.google.com/cloud-sdk-release

There is also a `gcloud components install` command which lets you manage your components without upgrading versions so you don't need to worry about being pinned: https://cloud.google.com/sdk/downloads#manage_an_sdk_installation
If you'd like to upgrade/downgrade to a specific version, you can run `gcloud components upgrade --version 100.0.0`, for instance.
Reply all
Reply to author
Forward
0 new messages