Created
February 3, 2020 08:49
-
-
Save moredhel/36148b5a04de04d75cb3d2dc400a7a0f to your computer and use it in GitHub Desktop.
Sample Confluence Plugin usage
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
| 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