Browse Source

Format pipelines

Following the teams yaml formatting.

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
pull/3/head
Taylor Silva 5 years ago
parent
commit
f2108ac1c6
  1. 42
      pipelines/git-triggered.yml
  2. 112
      pipelines/golang-lib.yml
  3. 24
      pipelines/hello-world.yml
  4. 1
      pipelines/java.yml
  5. 96
      pipelines/job-and-task-hooks.yml
  6. 96
      pipelines/manually-triggered.yml
  7. 56
      pipelines/nodejs-app-testing.yml
  8. 52
      pipelines/php-larvel-app-testing.yml
  9. 48
      pipelines/pipeline-vars.yml
  10. 32
      pipelines/rails-app-testing.yml
  11. 22
      pipelines/separate-task-config.yml
  12. 27
      pipelines/serial-job.yml
  13. 130
      pipelines/set-pipelines.yml
  14. 56
      pipelines/task-passing-artifact.yml
  15. 38
      pipelines/time-triggered.yml

42
pipelines/git-triggered.yml

@ -1,25 +1,25 @@
---
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:
- 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"]

112
pipelines/golang-lib.yml

@ -1,31 +1,31 @@
---
resources:
- name: golang-mock-git
type: git
icon: github
source:
uri: https://github.com/golang/mock.git
- name: golang-mock-git
type: git
icon: github
source:
uri: https://github.com/golang/mock.git
- name: golang-1.11.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.11-stretch
- name: golang-1.11.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.11-stretch
- name: golang-1.12.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.12-stretch
- name: golang-1.12.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.12-stretch
- name: golang-1.13.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.13-stretch
- name: golang-1.13.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.13-stretch
task-config: &task-config
platform: linux
@ -54,36 +54,36 @@ task-config: &task-config
go test -v ./...
jobs:
- name: golang-1.11
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.11.x-image
trigger: true
- task: run-tests
image: golang-1.11.x-image
config:
<< : *task-config
- name: golang-1.12
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.12.x-image
trigger: true
- task: run-tests
image: golang-1.12.x-image
config:
<< : *task-config
- name: golang-1.13
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.13.x-image
trigger: true
- task: run-tests
image: golang-1.13.x-image
config:
<< : *task-config
- name: golang-1.11
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.11.x-image
trigger: true
- task: run-tests
image: golang-1.11.x-image
config:
<< : *task-config
- name: golang-1.12
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.12.x-image
trigger: true
- task: run-tests
image: golang-1.12.x-image
config:
<< : *task-config
- name: golang-1.13
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.13.x-image
trigger: true
- task: run-tests
image: golang-1.13.x-image
config:
<< : *task-config

24
pipelines/hello-world.yml

@ -1,14 +1,14 @@
---
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
pipelines/java.yml

@ -34,6 +34,7 @@ jobs:
user: root
task: run-tests
public: true
resources:
- icon: github
name: apache-kafka-git

96
pipelines/job-and-task-hooks.yml

@ -6,60 +6,60 @@ task-config: &task-config
source: { repository: busybox }
jobs:
- name: job
public: true
plan:
- task: successful-task
- name: job
public: true
plan:
- task: successful-task
config:
<< : *task-config
run:
path: sh
args: ["-lc", "exit 0"]
on_success:
task: task-success
config:
<< : *task-config
run:
path: sh
args: ["-lc", "exit 0"]
on_success:
task: task-success
config:
<< : *task-config
run:
path: echo
args: ["This task succeeded!"]
on_abort:
task: task-aborted
config:
<< : *task-config
run:
path: echo
args: ["This task was aborted!"]
- task: failing-task
path: echo
args: ["This task succeeded!"]
on_abort:
task: task-aborted
config:
<< : *task-config
run:
path: sh
args: ["-lc", "exit 1"]
on_failure:
task: task-failure
config:
<< : *task-config
run:
path: echo
args: ["This task failed!"]
on_success:
task: job-success
config:
<< : *task-config
run:
path: echo
args: ["This job succeeded!"]
on_failure:
task: job-failure
path: echo
args: ["This task was aborted!"]
- task: failing-task
config:
<< : *task-config
run:
path: echo
args: ["This job failed!"]
on_abort:
task: job-aborted
config:
<< : *task-config
run:
path: echo
args: ["This job was aborted!"]
path: sh
args: ["-lc", "exit 1"]
on_failure:
task: task-failure
config:
<< : *task-config
run:
path: echo
args: ["This task failed!"]
on_success:
task: job-success
config:
<< : *task-config
run:
path: echo
args: ["This job succeeded!"]
on_failure:
task: job-failure
config:
<< : *task-config
run:
path: echo
args: ["This job failed!"]
on_abort:
task: job-aborted
config:
<< : *task-config
run:
path: echo
args: ["This job was aborted!"]

96
pipelines/manually-triggered.yml

@ -1,52 +1,52 @@
---
resources:
- name: every-30s
type: time
icon: clock-outline
source:
interval: 30s
- name: every-30s
type: time
icon: clock-outline
source:
interval: 30s
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!"]

56
pipelines/nodejs-app-testing.yml

@ -1,32 +1,32 @@
---
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:
- 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

52
pipelines/php-larvel-app-testing.yml

@ -1,31 +1,31 @@
---
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:
- 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

48
pipelines/pipeline-vars.yml

@ -1,26 +1,26 @@
---
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))!"]

32
pipelines/rails-app-testing.yml

@ -1,10 +1,10 @@
---
resources:
- name: rails-contributors-git
type: git
icon: github
source:
uri: https://github.com/rails/rails-contributors.git
- name: rails-contributors-git
type: git
icon: github
source:
uri: https://github.com/rails/rails-contributors.git
task-config: &task-config
platform: linux
@ -36,14 +36,14 @@ task-config: &task-config
bundle exec rails test
jobs:
- name: test
public: true
plan:
- get: rails-contributors-git
trigger: true
- task: run-tests
config:
image_resource:
type: registry-image
source: { repository: ruby, tag: 2.6.5 }
<< : *task-config
- name: test
public: true
plan:
- get: rails-contributors-git
trigger: true
- task: run-tests
config:
image_resource:
type: registry-image
source: { repository: ruby, tag: 2.6.5 }
<< : *task-config

22
pipelines/separate-task-config.yml

@ -1,15 +1,15 @@
---
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:
- 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

27
pipelines/serial-job.yml

@ -1,15 +1,16 @@
---
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!"]

130
pipelines/set-pipelines.yml

@ -1,69 +1,69 @@
---
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:
# 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

56
pipelines/task-passing-artifact.yml

@ -1,30 +1,30 @@
---
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

38
pipelines/time-triggered.yml

@ -1,23 +1,23 @@
---
resources:
- name: every-30s
type: time
icon: clock-outline
source:
interval: 30s
- name: every-30s
type: time
icon: clock-outline
source:
interval: 30s
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!"]
Loading…
Cancel
Save