A Concourse resource that allows jobs to trigger Spinnaker pipelines.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 79de8c5 Dec 6, 2017

README.md

Concourse Spinnaker Resource

A Concourse resource that allows jobs to trigger Spinnaker pipelines.

Source Configuration

Required

  • spinnaker_api:
  • x509_cert:
  • x509_key:

Behaviour

check, in

Currently this resource only supports the put phase of a job plan, so these are effectively no-ops. This will change in the future.

out: Triggers a pipeline

Triggers a Spinnaker pipeline.

Parameters

NOTE: Any metadata in the parameters will be evaluated prior to triggering the pipeline.

Required:
  • spinnaker_application: The Spinnaker application you would like to trigger.
  • spinnaker_pipeline: The Spinnaker pipeline you would like to trigger.
Optional:
  • trigger_params: build information to send to Spinnaker pipeline execution which can be consumed by the pipeline expressions. can be any key/value pair that you would like to consume.

Example Pipeline

---
resource_types:
- name: spinnaker
  type: docker-image
  source:
    repository: burdz/concourse-spinnaker-resource

resources:
  - name: spinnaker
    type: spinnaker
    source:
      spinnaker_api: ((spinnaker-api))
      spinnaker_x509_cert: ((spinnaker-x509-cert))
      spinnaker_x509_key: ((spinnaker-x509-key))

jobs:
- name: trigger-pipeline
  plan:
  - put: spinnaker
    params:
      spinnaker_application: samplespinnakerapp
      spinnaker_pipeline: samplespinnakerapp
      trigger_params:
        build_id: (build ${BUILD_ID})