Browse Source
Format pipelines
Format pipelines
Following the teams yaml formatting. Signed-off-by: Taylor Silva <tsilva@pivotal.io>pull/3/head
15 changed files with 417 additions and 415 deletions
-
42pipelines/git-triggered.yml
-
112pipelines/golang-lib.yml
-
24pipelines/hello-world.yml
-
1pipelines/java.yml
-
96pipelines/job-and-task-hooks.yml
-
96pipelines/manually-triggered.yml
-
56pipelines/nodejs-app-testing.yml
-
52pipelines/php-larvel-app-testing.yml
-
48pipelines/pipeline-vars.yml
-
32pipelines/rails-app-testing.yml
-
22pipelines/separate-task-config.yml
-
27pipelines/serial-job.yml
-
130pipelines/set-pipelines.yml
-
56pipelines/task-passing-artifact.yml
-
38pipelines/time-triggered.yml
@ -1,25 +1,25 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: concourse-docs-git |
|
||||
type: git |
|
||||
icon: github |
|
||||
source: |
|
||||
uri: https://github.com/concourse/docs |
|
||||
|
- name: concourse-docs-git |
||||
|
type: git |
||||
|
icon: github |
||||
|
source: |
||||
|
uri: https://github.com/concourse/docs |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: job |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: concourse-docs-git |
|
||||
trigger: true |
|
||||
- task: list-files |
|
||||
config: |
|
||||
inputs: |
|
||||
- name: concourse-docs-git |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: ls |
|
||||
args: ["-la", "./concourse-docs-git"] |
|
||||
|
- name: job |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: concourse-docs-git |
||||
|
trigger: true |
||||
|
- task: list-files |
||||
|
config: |
||||
|
inputs: |
||||
|
- name: concourse-docs-git |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: ls |
||||
|
args: ["-la", "./concourse-docs-git"] |
||||
@ -1,14 +1,14 @@ |
|||||
--- |
--- |
||||
jobs: |
jobs: |
||||
- name: job |
|
||||
public: true |
|
||||
plan: |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
|
- name: job |
||||
|
public: true |
||||
|
plan: |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
@ -1,52 +1,52 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: every-30s |
|
||||
type: time |
|
||||
icon: clock-outline |
|
||||
source: |
|
||||
interval: 30s |
|
||||
|
- name: every-30s |
||||
|
type: time |
||||
|
icon: clock-outline |
||||
|
source: |
||||
|
interval: 30s |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: triggered-first |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: every-30s |
|
||||
trigger: true |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
- name: not-triggered |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: every-30s |
|
||||
passed: [triggered-first] |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
- name: triggered-second |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: every-30s |
|
||||
passed: [triggered-first] |
|
||||
trigger: true |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
|
- name: triggered-first |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: every-30s |
||||
|
trigger: true |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
|
- name: not-triggered |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: every-30s |
||||
|
passed: [triggered-first] |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
|
- name: triggered-second |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: every-30s |
||||
|
passed: [triggered-first] |
||||
|
trigger: true |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
@ -1,32 +1,32 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: nodejs.org-git |
|
||||
type: git |
|
||||
icon: github |
|
||||
source: |
|
||||
uri: https://github.com/nodejs/nodejs.org.git |
|
||||
|
- name: nodejs.org-git |
||||
|
type: git |
||||
|
icon: github |
||||
|
source: |
||||
|
uri: https://github.com/nodejs/nodejs.org.git |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: test |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: nodejs.org-git |
|
||||
trigger: true |
|
||||
- task: run-tests |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: node } |
|
||||
inputs: |
|
||||
- name: nodejs.org-git |
|
||||
run: |
|
||||
path: /bin/sh |
|
||||
args: |
|
||||
- -c |
|
||||
- | |
|
||||
echo "Node Version: $(node --version)" |
|
||||
echo "NPM Version: $(npm --version)" |
|
||||
cd nodejs.org-git |
|
||||
npm install |
|
||||
npm test |
|
||||
|
- name: test |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: nodejs.org-git |
||||
|
trigger: true |
||||
|
- task: run-tests |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: node } |
||||
|
inputs: |
||||
|
- name: nodejs.org-git |
||||
|
run: |
||||
|
path: /bin/sh |
||||
|
args: |
||||
|
- -c |
||||
|
- | |
||||
|
echo "Node Version: $(node --version)" |
||||
|
echo "NPM Version: $(npm --version)" |
||||
|
cd nodejs.org-git |
||||
|
npm install |
||||
|
npm test |
||||
@ -1,31 +1,31 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: larvel-websockets-git |
|
||||
type: git |
|
||||
icon: github |
|
||||
source: |
|
||||
uri: https://github.com/beyondcode/laravel-websockets.git |
|
||||
|
- name: larvel-websockets-git |
||||
|
type: git |
||||
|
icon: github |
||||
|
source: |
||||
|
uri: https://github.com/beyondcode/laravel-websockets.git |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: test |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: larvel-websockets-git |
|
||||
trigger: true |
|
||||
- task: run-tests |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: composer } |
|
||||
inputs: |
|
||||
- name: larvel-websockets-git |
|
||||
run: |
|
||||
path: /bin/sh |
|
||||
args: |
|
||||
- -c |
|
||||
- | |
|
||||
cd larvel-websockets-git |
|
||||
|
- name: test |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: larvel-websockets-git |
||||
|
trigger: true |
||||
|
- task: run-tests |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: composer } |
||||
|
inputs: |
||||
|
- name: larvel-websockets-git |
||||
|
run: |
||||
|
path: /bin/sh |
||||
|
args: |
||||
|
- -c |
||||
|
- | |
||||
|
cd larvel-websockets-git |
||||
|
|
||||
composer install |
|
||||
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover |
|
||||
|
composer install |
||||
|
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover |
||||
@ -1,26 +1,26 @@ |
|||||
--- |
--- |
||||
jobs: |
jobs: |
||||
- name: ((first))-job |
|
||||
public: true |
|
||||
plan: |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, ((hello))!"] |
|
||||
- name: level-((number))-job |
|
||||
public: true |
|
||||
plan: |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, ((hello))!"] |
|
||||
|
- name: ((first))-job |
||||
|
public: true |
||||
|
plan: |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, ((hello))!"] |
||||
|
- name: level-((number))-job |
||||
|
public: true |
||||
|
plan: |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, ((hello))!"] |
||||
@ -1,15 +1,15 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: concourse-examples |
|
||||
type: git |
|
||||
icon: github |
|
||||
source: |
|
||||
uri: https://github.com/concourse/examples |
|
||||
|
- name: concourse-examples |
||||
|
type: git |
||||
|
icon: github |
||||
|
source: |
||||
|
uri: https://github.com/concourse/examples |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: job |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: concourse-examples |
|
||||
- task: simple-task |
|
||||
file: concourse-examples/tasks/hello-world.yml |
|
||||
|
- name: job |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: concourse-examples |
||||
|
- task: simple-task |
||||
|
file: concourse-examples/tasks/hello-world.yml |
||||
@ -1,15 +1,16 @@ |
|||||
--- |
--- |
||||
jobs: |
jobs: |
||||
- name: serial-job |
|
||||
public: true |
|
||||
serial: true |
|
||||
plan: |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
|
# Try to trigger the job multiple times and see what happens |
||||
|
- name: serial-job |
||||
|
public: true |
||||
|
serial: true |
||||
|
plan: |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
@ -1,69 +1,69 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: concourse-examples |
|
||||
type: git |
|
||||
icon: github |
|
||||
source: |
|
||||
uri: https://github.com/concourse/examples |
|
||||
|
- name: concourse-examples |
||||
|
type: git |
||||
|
icon: github |
||||
|
source: |
||||
|
uri: https://github.com/concourse/examples |
||||
|
|
||||
jobs: |
jobs: |
||||
# update this pipeline before updating child pipelines |
|
||||
- name: set-self |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: concourse-examples |
|
||||
trigger: true |
|
||||
- set_pipeline: set-pipelines |
|
||||
file: concourse-examples/pipelines/set-pipelines.yml |
|
||||
- name: set-example-pipelines |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: concourse-examples |
|
||||
trigger: true |
|
||||
passed: [set-self] |
|
||||
- set_pipeline: job |
|
||||
file: concourse-examples/pipelines/hello-world.yml |
|
||||
- set_pipeline: separate-task-config |
|
||||
file: concourse-examples/pipelines/separate-task-config.yml |
|
||||
- set_pipeline: serial-job |
|
||||
file: concourse-examples/pipelines/serial-job.yml |
|
||||
- set_pipeline: pipeline-vars |
|
||||
file: concourse-examples/pipelines/pipeline-vars.yml |
|
||||
vars: |
|
||||
first: initial |
|
||||
number: "9000" |
|
||||
hello: HAL |
|
||||
- set_pipeline: instance-groups |
|
||||
file: concourse-examples/pipelines/pipeline-vars.yml |
|
||||
# instance_vars is currently experimental and requires the feature flag |
|
||||
# --enable-pipeline-instances |
|
||||
instance_vars: |
|
||||
first: initial |
|
||||
number: "9000" |
|
||||
hello: HAL |
|
||||
- set_pipeline: instance-groups |
|
||||
file: concourse-examples/pipelines/pipeline-vars.yml |
|
||||
instance_vars: |
|
||||
first: second |
|
||||
number: "3000" |
|
||||
hello: WALLY-E |
|
||||
- set_pipeline: task-passing-artifact |
|
||||
file: concourse-examples/pipelines/task-passing-artifact.yml |
|
||||
- set_pipeline: time-triggered |
|
||||
file: concourse-examples/pipelines/time-triggered.yml |
|
||||
- set_pipeline: git-triggered |
|
||||
file: concourse-examples/pipelines/git-triggered.yml |
|
||||
- set_pipeline: manual-trigger |
|
||||
file: concourse-examples/pipelines/manually-triggered.yml |
|
||||
- set_pipeline: hooks |
|
||||
file: concourse-examples/pipelines/job-and-task-hooks.yml |
|
||||
- set_pipeline: golang-lib |
|
||||
file: concourse-examples/pipelines/golang-lib.yml |
|
||||
- set_pipeline: rails |
|
||||
file: concourse-examples/pipelines/rails-app-testing.yml |
|
||||
- set_pipeline: nodejs |
|
||||
file: concourse-examples/pipelines/nodejs-app-testing.yml |
|
||||
- set_pipeline: php |
|
||||
file: concourse-examples/pipelines/php-larvel-app-testing.yml |
|
||||
- set_pipeline: java |
|
||||
file: concourse-examples/pipelines/java.yml |
|
||||
|
# update this pipeline before updating child pipelines |
||||
|
- name: set-self |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: concourse-examples |
||||
|
trigger: true |
||||
|
- set_pipeline: set-pipelines |
||||
|
file: concourse-examples/pipelines/set-pipelines.yml |
||||
|
- name: set-example-pipelines |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: concourse-examples |
||||
|
trigger: true |
||||
|
passed: [set-self] |
||||
|
- set_pipeline: job |
||||
|
file: concourse-examples/pipelines/hello-world.yml |
||||
|
- set_pipeline: separate-task-config |
||||
|
file: concourse-examples/pipelines/separate-task-config.yml |
||||
|
- set_pipeline: serial-job |
||||
|
file: concourse-examples/pipelines/serial-job.yml |
||||
|
- set_pipeline: pipeline-vars |
||||
|
file: concourse-examples/pipelines/pipeline-vars.yml |
||||
|
vars: |
||||
|
first: initial |
||||
|
number: "9000" |
||||
|
hello: HAL |
||||
|
- set_pipeline: instance-groups |
||||
|
file: concourse-examples/pipelines/pipeline-vars.yml |
||||
|
# instance_vars is currently experimental and requires the feature flag |
||||
|
# --enable-pipeline-instances |
||||
|
instance_vars: |
||||
|
first: initial |
||||
|
number: "9000" |
||||
|
hello: HAL |
||||
|
- set_pipeline: instance-groups |
||||
|
file: concourse-examples/pipelines/pipeline-vars.yml |
||||
|
instance_vars: |
||||
|
first: second |
||||
|
number: "3000" |
||||
|
hello: WALLY-E |
||||
|
- set_pipeline: task-passing-artifact |
||||
|
file: concourse-examples/pipelines/task-passing-artifact.yml |
||||
|
- set_pipeline: time-triggered |
||||
|
file: concourse-examples/pipelines/time-triggered.yml |
||||
|
- set_pipeline: git-triggered |
||||
|
file: concourse-examples/pipelines/git-triggered.yml |
||||
|
- set_pipeline: manual-trigger |
||||
|
file: concourse-examples/pipelines/manually-triggered.yml |
||||
|
- set_pipeline: hooks |
||||
|
file: concourse-examples/pipelines/job-and-task-hooks.yml |
||||
|
- set_pipeline: golang-lib |
||||
|
file: concourse-examples/pipelines/golang-lib.yml |
||||
|
- set_pipeline: rails |
||||
|
file: concourse-examples/pipelines/rails-app-testing.yml |
||||
|
- set_pipeline: nodejs |
||||
|
file: concourse-examples/pipelines/nodejs-app-testing.yml |
||||
|
- set_pipeline: php |
||||
|
file: concourse-examples/pipelines/php-larvel-app-testing.yml |
||||
|
- set_pipeline: java |
||||
|
file: concourse-examples/pipelines/java.yml |
||||
@ -1,30 +1,30 @@ |
|||||
--- |
--- |
||||
jobs: |
jobs: |
||||
- name: create-and-consume |
|
||||
public: true |
|
||||
plan: |
|
||||
- task: make-a-file |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: sh |
|
||||
args: |
|
||||
- -exc |
|
||||
- ls -la; echo "Created a file on $(date)" > ./files/created_file |
|
||||
outputs: |
|
||||
- name: files |
|
||||
- task: consume-the-file |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
inputs: |
|
||||
- name: files |
|
||||
run: |
|
||||
path: cat |
|
||||
args: |
|
||||
- ./files/created_file |
|
||||
|
- name: create-and-consume |
||||
|
public: true |
||||
|
plan: |
||||
|
- task: make-a-file |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: sh |
||||
|
args: |
||||
|
- -exc |
||||
|
- ls -la; echo "Created a file on $(date)" > ./files/created_file |
||||
|
outputs: |
||||
|
- name: files |
||||
|
- task: consume-the-file |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
inputs: |
||||
|
- name: files |
||||
|
run: |
||||
|
path: cat |
||||
|
args: |
||||
|
- ./files/created_file |
||||
@ -1,23 +1,23 @@ |
|||||
--- |
--- |
||||
resources: |
resources: |
||||
- name: every-30s |
|
||||
type: time |
|
||||
icon: clock-outline |
|
||||
source: |
|
||||
interval: 30s |
|
||||
|
- name: every-30s |
||||
|
type: time |
||||
|
icon: clock-outline |
||||
|
source: |
||||
|
interval: 30s |
||||
|
|
||||
jobs: |
jobs: |
||||
- name: job |
|
||||
public: true |
|
||||
plan: |
|
||||
- get: every-30s |
|
||||
trigger: true |
|
||||
- task: simple-task |
|
||||
config: |
|
||||
platform: linux |
|
||||
image_resource: |
|
||||
type: registry-image |
|
||||
source: { repository: busybox } |
|
||||
run: |
|
||||
path: echo |
|
||||
args: ["Hello, world!"] |
|
||||
|
- name: job |
||||
|
public: true |
||||
|
plan: |
||||
|
- get: every-30s |
||||
|
trigger: true |
||||
|
- task: simple-task |
||||
|
config: |
||||
|
platform: linux |
||||
|
image_resource: |
||||
|
type: registry-image |
||||
|
source: { repository: busybox } |
||||
|
run: |
||||
|
path: echo |
||||
|
args: ["Hello, world!"] |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue