Skip to content
Branch: master
Find file History
leeonlee and ImJasonH Install unzip (#507)
unzip will be used to unpack source retrieved from GCS
Latest commit e16355d Jun 28, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples/gcs_push GCB rebrand. (#309) Jul 24, 2018
Dockerfile Install unzip (#507) Jun 28, 2019
README.md GCB rebrand. (#309) Jul 24, 2018
cloudbuild.yaml GCB rebrand. (#309) Jul 24, 2018

README.md

gsutil

This is a tool builder to simply invoke gsutil commands.

Arguments passed to this builder will be passed to gsutil directly, allowing callers to run any gsutil command.

When executed in the Cloud Build environment, commands are executed with credentials of the builder service account for the project.

The latest available version of gsutil is used.

Examples

The following examples demonstrate build request that use this builder:

For these to work, the builder service account must have permission to access the necessary buckets and objects.

Copy an object from Google Cloud Storage

This cloudbuild.yaml invokes gsutil cp to copy an object to the build's workspace.

steps:
- name: gcr.io/cloud-builders/gsutil
  args: ['cp', 'gs://mybucket/remotefile.zip', 'localfile.zip']

Copy a local file to Google Cloud Storage

This cloudbuild.yaml invokes gsutil cp to copy a local file to Google Cloud Storage.

steps:
- name: gcr.io/cloud-builders/gsutil
  args: ['cp', 'localfile.zip', 'gs://mybucket/remotefile.zip']
You can’t perform that action at this time.