Skip to content

Commit 7e5e669

Browse files
committed
Simplify pipeline scripts / vars
1 parent d9104dc commit 7e5e669

File tree

5 files changed

+12
-47
lines changed

5 files changed

+12
-47
lines changed

ci/configure.sh

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,6 @@ set -eu -o pipefail
33

44
REPO_ROOT="$( cd "$( dirname "${0}" )/.." && pwd )"
55

6-
if [ "$#" == 0 ]; then
7-
mapfile -t available_pipelines < <(find "${REPO_ROOT}/ci/pipelines" -type f -name '*.yml' -depth 1 | sort)
8-
9-
i=1
10-
echo "Choose a pipeline to configure:"
11-
for pipeline in "${available_pipelines[@]}"; do
12-
printf "%4s. $(basename "${pipeline}" '.yml')\n" "${i}"
13-
i=$((i + 1))
14-
done
15-
read -rp "pipeline: " pipeline_index
16-
echo ""
17-
18-
pipeline_name="$(basename "${available_pipelines[(pipeline_index-1)]}" .yml)"
19-
elif [ "$#" == 1 ]; then
20-
# Allow just pipeline name or path to yml file
21-
pipeline_name="$(basename "${1}" .yml)"
22-
else
23-
echo "Usage: configure.sh [PIPELINE_NAME_OR_FILE]"
24-
exit 1
25-
fi
26-
27-
echo "Configuring ${pipeline_name}..."
28-
296
fly="${FLY_CLI:-fly}"
307
concourse_target="${CONCOURSE_TARGET:-bosh-ecosystem}"
318

@@ -34,16 +11,7 @@ until "${fly}" -t "${concourse_target}" status;do
3411
sleep 1
3512
done
3613

37-
if [ -d "${REPO_ROOT}/ci/pipelines/${pipeline_name}" ]; then
38-
pipeline_file_path="${REPO_ROOT}/ci/pipelines/${pipeline_name}"
39-
else
40-
pipeline_file_path="${REPO_ROOT}/ci/pipelines/${pipeline_name}.yml"
41-
fi
42-
4314
"${fly}" -t "${concourse_target}" set-pipeline \
44-
-p "${pipeline_name}" \
45-
-c <( \
46-
bosh int "${pipeline_file_path}" \
47-
-l "${REPO_ROOT}/ci/pipelines/vars/2019-vars.yml" \
48-
) \
49-
-l "${REPO_ROOT}/ci/pipelines/vars/vars.yml"
15+
-p "stemcells-windows-2019" \
16+
-c "${REPO_ROOT}/ci/pipelines/stemcells-windows.yml" \
17+
-l "${REPO_ROOT}/ci/pipelines/vars.yml"
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
#Common Variables
2+
ROOT_EPHEMERAL_VM_TYPE: "use_root_disk_as_ephemeral"
3+
BOSH_AGENT_RELEASE_VERSION: "~2"
4+
5+
# Common Variables
36
AWS_LOCK: 'stemcells-aws'
47
AZURE_LOCK: 'stemcells-azure'
58
BASE_FOLDER_NAME: '2019'
@@ -25,20 +28,20 @@ GOOSE_POOL_NAME: 'goose-2019'
2528
GCP_POOL_NAME: 'gcp-wuts-2019'
2629
VSPHERE_POOL_NAME: 'vsphere-2019'
2730

28-
#AWS Base Image Info
31+
# AWS Base Image Info
2932
BASE_AMI_NAME: 'Windows_Server-2019-English-Core-Base-*'
30-
#AWS Output Info
33+
# AWS Output Info
3134
AWS_REGIONAL_BUCKET: 'aws-regional-stemcells-2019'
32-
#AWS Packer Info
35+
# AWS Packer Info
3336
AWS_PACKER_REGION: 'us-east-1'
3437
AWS_CHINA_PACKER_REGION: 'cn-north-1'
3538
AWS_GOVCLOUD_PACKER_REGION: 'us-gov-west-1'
3639

37-
#GCP Base Image Info
40+
# GCP Base Image Info
3841
BASE_IMAGE_REGEX: 'windows-server-2019-dc-core-v.*'
3942
IMAGE_FAMILY: 'windows-2019-core'
4043

41-
#Azure Create & Publish Variables
44+
# Azure Create & Publish Variables
4245
AZURE_BASE_IMAGE: '2019-Datacenter-Core-smalldisk'
4346
AZURE_BASE_IMAGE_OFFER: 'WindowsServer'
4447
AZURE_CONTAINER_NAME: 'system'
@@ -67,4 +70,3 @@ BOSHIO_OS_VERSION: '2019'
6770
OVA_SOURCE_S3_REGION: "us-east-1"
6871
OVA_SOURCE_S3_BUCKET: "all-bosh-windows"
6972
OVA_SOURCE_S3_FILENAME: "ova-for-stembuild-test/Windows2019_VMWTools10.3.10_NoPassExp.ova"
70-

ci/pipelines/vars/utilities-vars.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

ci/pipelines/vars/vars.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)