Created
July 17, 2018 15:30
-
-
Save fj/1ce396f440a6c900273a7e2f759ae4a4 to your computer and use it in GitHub Desktop.
pipeline-with-manual-intervention.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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