Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipeline-with-manual-intervention.yml
---
resources:
- name: my-resource
type: git
source:
branch: master
uri: https://github.com/pivotalservices/concourse-pipeline-samples.git
jobs:
- name: Run-automatically
plan:
- get: my-resource
trigger: true
- task: do-your-task-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "This job is automatically triggered upon any version change in the resource."
- name: Manually-trigger-me
plan:
- get: my-resource
passed:
- Run-automatically
trigger: false
- task: do-your-manual-task-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "Output of your manually triggered task."
- name: Do-more-stuff-after-manual-trigger
plan:
- get: my-resource
passed:
- Manually-trigger-me
trigger: true
- task: do-other-tasks-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "Output of your other tasks."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment