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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.idea
*.iml
*.json

creds.yml

tmp
.idea
7 changes: 4 additions & 3 deletions ci/configure.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

set -eu
REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"

fly -t bosh set-pipeline -p bosh-deployment \
-c ci/pipeline.yml
fly -t "${CONCOURSE_TARGET:-bosh}" set-pipeline -p bosh-deployment \
-c "${REPO_ROOT}/ci/pipeline.yml"
17 changes: 17 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ groups:
- test-bosh-gcp
- test-smoke
- test-main-warden-cpi
- test-main-docker-cpi
- promote
- name: cpis
jobs:
Expand Down Expand Up @@ -144,6 +145,21 @@ jobs:
stemcell: warden-ubuntu-noble-stemcell
privileged: true

- name: test-main-docker-cpi
serial: true
build_log_retention:
builds: 250
plan:
- get: bosh-deployment
trigger: true
- get: warden-ubuntu-noble-stemcell
- task: test-main-docker-cpi
timeout: 2h
file: bosh-deployment/ci/tasks/test-main-docker-cpi.yml
input_mapping:
stemcell: warden-ubuntu-noble-stemcell
privileged: true

- name: promote
serial: true
build_log_retention:
Expand All @@ -155,6 +171,7 @@ jobs:
- test-smoke
- test-bosh-gcp
- test-main-warden-cpi
- test-main-docker-cpi
Comment thread
aramprice marked this conversation as resolved.
- put: bosh-deployment-commit-status
params:
state: success
Expand Down
31 changes: 31 additions & 0 deletions ci/tasks/test-main-docker-cpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

set -eu

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bosh_deployment="${PWD}/bosh-deployment"
rm -rf "/usr/local/bosh-deployment"
cp -r "${PWD}/bosh-deployment" "/usr/local/bosh-deployment"

export USE_LOCAL_RELEASES=false
. start-bosh
. /tmp/local-bosh/director/env

URL=$(cat stemcell/url)
SHA1=$(cat stemcell/sha1)

bosh upload-stemcell --sha1 "$SHA1" "$URL"

bosh -n update-runtime-config "${bosh_deployment}/runtime-configs/dns.yml"

echo "-----> `date`: Deploy"
bosh -n -d zookeeper deploy "${script_dir}/../assets/zookeeper.yml"

echo "-----> `date`: Exercise deployment"
bosh -n -d zookeeper run-errand smoke-tests

echo "-----> `date`: Exercise deployment"
bosh -n -d zookeeper recreate

echo "-----> `date`: Clean up disks, etc."
bosh -n -d zookeeper clean-up --all
Comment thread
aramprice marked this conversation as resolved.
14 changes: 14 additions & 0 deletions ci/tasks/test-main-docker-cpi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
platform: linux

image_resource:
type: registry-image
source:
repository: ghcr.io/cloudfoundry/bosh/docker-cpi

inputs:
- name: bosh-deployment
- name: stemcell

run:
path: bosh-deployment/ci/tasks/test-main-docker-cpi.sh