Skip to content

Instantly share code, notes, and snippets.

@fj
Created July 17, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fj/1ce396f440a6c900273a7e2f759ae4a4 to your computer and use it in GitHub Desktop.
Save fj/1ce396f440a6c900273a7e2f759ae4a4 to your computer and use it in GitHub Desktop.
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