Skip to content

Commit

Permalink
ci: update pipeline.yml with acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domdom82 committed Jun 30, 2023
1 parent 06924c4 commit 8c3439a
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ groups:
- unit-tests-pr
- shipit
- rc
- acceptance-tests
- acceptance-tests-pr

jobs:
- name: unit-tests
Expand Down Expand Up @@ -128,6 +130,85 @@ jobs:
status: failure
context: unit-tests

- name: acceptance-tests
public: true
serial: true
plan:
- do:
- in_parallel:
- { get: git, trigger: true, passed: [ unit-tests ] }
- { get: stemcell }
- task: acceptance-tests
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cf-routing.common.repositories.cloud.sap/pcap-release-testflight
tag: latest
username: ((docker.username))
password: ((docker.password))
inputs:
- { name: git }
- { name: stemcell }
run:
path: ./git/ci/scripts/acceptance-tests
args: [ ]
params:
REPO_ROOT: git
on_failure:
put: notify
params:
channel: "#pcap-release"
username: ci-bot
icon_url: "((slack.icon))"
text: "((slack.fail_url)) pcap-release: acceptance-tests job failed"

- name: acceptance-tests-pr
public: true
serial: true
plan:
- do:
- { get: git-pull-requests, trigger: true, version: every, passed: [ unit-tests-pr ] }
- { get: stemcell }
- put: git-pull-requests
params:
path: git-pull-requests
status: pending
context: acceptance-tests
- task: acceptance-tests
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cf-routing.common.repositories.cloud.sap/pcap-release-testflight
tag: latest
username: ((docker.username))
password: ((docker.password))
inputs:
- { name: git-pull-requests }
- { name: stemcell }
run:
path: ./git-pull-requests/ci/scripts/acceptance-tests
args: [ ]
params:
REPO_ROOT: git-pull-requests
on_success:
put: git-pull-requests
params:
path: git-pull-requests
status: success
context: acceptance-tests
on_failure:
put: git-pull-requests
params:
path: git-pull-requests
status: failure
context: acceptance-tests

- name: shipit
public: true
serial: true
Expand Down Expand Up @@ -250,3 +331,8 @@ resources:
bucket: pcap-release
json_key: ((gcp.service_key))
regexp: pcap-v[0-9a-z\.+-]+.tgz

- name: stemcell
type: bosh-io-stemcell
source:
name: bosh-warden-boshlite-ubuntu-jammy-go_agent

0 comments on commit 8c3439a

Please sign in to comment.