Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile Use launcher.gcr.io/google/ubuntu16_04 base image Dec 18, 2017
README.md Add examples to README.md for tool builders Nov 14, 2016
cloudbuild.yaml Include ca-certificates in the wget tool builder Dec 28, 2016

README.md

wget

This is a tool build to simply invoke the wget command.

Arguments passed to this builder will be passed to wget directly.

Examples

The following examples demonstrate build requests that use this builder.

Fetch the contents of a remote URL

This cloudbuild.yaml fetches contents of a file by URL. For this to work the file must be publicly readable, since no credentials are passed in the request.

steps:
- name: gcr.io/cloud-builders/wget
  args: ['-O', 'localfile.zip', 'http://www.example.com/remotefile.zip']

Ping a remote URL

This cloudbuild.yaml sends a POST request to a URL to notify that the build has happened, including the build's unique ID in the JSON body of the request.

steps:
- name: gcr.io/cloud-builders/wget
  args: ['-q', '--post-data="{\"id\":\"$BUILD_ID\"}"', 'http://www.example.com']
You can’t perform that action at this time.