Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ resources:
private_key: ((github_deploy_key_bpm-release.private_key))
uri: git@github.com:cloudfoundry/bpm-release.git

- name: bosh-deployment
type: git
source:
uri: https://github.com/cloudfoundry/bosh-deployment

- name: weekly
type: time
source:
Expand Down Expand Up @@ -145,6 +150,17 @@ jobs:
file: bpm-release/ci/tasks/test-unit.yml
privileged: true

- name: test-bosh-deployment
plan:
- in_parallel:
- get: bpm-release
trigger: true
- get: bosh-deployment
- task: test-bosh-deployment
file: bpm-release/ci/tasks/test-bosh-deployment.yml
privileged: true


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: extra space here

- name: test-acceptance-jammy
plan:
- in_parallel:
Expand Down Expand Up @@ -217,6 +233,7 @@ jobs:
- test-acceptance-jammy
- test-unit
- test-upgrade
- test-bosh-deployment

- name: release-new-patch
serial_groups:
Expand Down
14 changes: 14 additions & 0 deletions ci/tasks/test-bosh-deployment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -euo pipefail

ROOT_PATH="$(pwd)"
export ROOT_PATH

local_bpm_release="${ROOT_PATH}/bpm-dev-release.tgz"
bosh create-release --dir "${ROOT_PATH}/bpm-release/" --tarball "${local_bpm_release}"

# Explicitly deploy the Director using the dev release to validate it.
. start-bosh \
-o "${ROOT_PATH}/bpm-release/ci/tasks/use-dev-release-ops-file.yml" \
-v local_bpm_release=${local_bpm_release}
17 changes: 17 additions & 0 deletions ci/tasks/test-bosh-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
platform: linux

image_resource:
type: registry-image
source:
repository: bosh/docker-cpi

inputs:
- name: bpm-release
- name: bosh-deployment

params:
STEMCELL_NAME:

run:
path: bpm-release/ci/tasks/test-bosh-deployment.sh
5 changes: 5 additions & 0 deletions ci/tasks/use-dev-release-ops-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- path: /releases/name=bpm
type: replace
value:
name: bpm
url: file://((local_bpm_release))
Loading