Webhook Stage - Producing Artifacts

The Webhook Stage is capable of producing artifacts which can be used in downstream stages. This is done by returning a valid array of artifacts in the response of the webhook that you’re calling. For example, your webhook may be responsible for generating an artifact and pushing it into an object store such as S3. To correctly inform Spinnaker of this artifact, your webhook should respond with the following JSON response.

{
    "artifacts": [
        {
            "type": "s3/object",
            "reference": "s3://webhook-example-bucket/webhook-example-object.yaml"
        }
    ]
}

In order to use these artifacts within the pipeline, you must first add them as expected artifacts under the pipeline Configuration section.

Once you’ve added a Webhook stage, be sure to add your artifact under the Produces Artifacts section in the stage configuration.

***

More Resources:

×

Subscribe

The latest tutorials sent straight to your inbox.