Skip to content

Instantly share code, notes, and snippets.

@moredhel
Created February 3, 2020 08:49
Show Gist options
  • Select an option

  • Save moredhel/36148b5a04de04d75cb3d2dc400a7a0f to your computer and use it in GitHub Desktop.

Select an option

Save moredhel/36148b5a04de04d75cb3d2dc400a7a0f to your computer and use it in GitHub Desktop.
Sample Confluence Plugin usage
resource_types:
- name: job-passer
type: docker-image
source:
repository: moredhel/keyval-resource
resources:
- name: promote
type: job-passer
icon: arrow-right-drop-circle
public: true
jobs:
- name: testing
public: true
plan:
- get: src-repo
trigger: true
- task: build-project
file: pipeline-tasks/kmt-kubectl-apply.yaml
input_mapping:
environment: "acceptance"
- put: promote
params:
current: "testing"
target: "acceptance"
# Here it is possible to query:
# $ ls -l promote/
# current
# target
# $ cat promote/current
# testing
- name: acceptance
public: true
plan:
- in_parallel:
- get: promote
passed: [testing]
trigger: true
- task: kubectl-apply
file: pipeline-tasks/kmt-kubectl-apply.yaml
params:
ENVIRONMENT: "acceptance"
input_mapping:
environment: acceptance-env
- put: promote
params:
current: "acceptance"
target: "production"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment