From 8f9752be23440874125f42f11d300627407eef0e Mon Sep 17 00:00:00 2001 From: Nathan Pierce Date: Thu, 24 Oct 2019 09:48:33 -0400 Subject: [PATCH 1/2] added new build step & comments to help describe what variables are available for logic creation --- .cicd/generate-pipeline.sh | 53 +++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/.cicd/generate-pipeline.sh b/.cicd/generate-pipeline.sh index 79e44970269..f6985d264bd 100755 --- a/.cicd/generate-pipeline.sh +++ b/.cicd/generate-pipeline.sh @@ -28,11 +28,23 @@ for FILE in $(ls $CICD_DIR/platforms); do [[ $FILE =~ 'unpinned' ]] && continue fi export FILE_NAME="$(echo $FILE | awk '{split($0,a,/\.(d|s)/); print a[1] }')" + # macos-10.14 + # ubuntu-16.04 export PLATFORM_NAME="$(echo $FILE_NAME | cut -d- -f1 | sed 's/os/OS/g')" + # macOS + # ubuntu export PLATFORM_NAME_UPCASE="$(echo $PLATFORM_NAME | tr a-z A-Z)" + # MACOS + # UBUNTU export VERSION_MAJOR="$(echo $FILE_NAME | cut -d- -f2 | cut -d. -f1)" + # 10 + # 16 [[ "$(echo $FILE_NAME | cut -d- -f2)" =~ '.' ]] && export VERSION_MINOR="_$(echo $FILE_NAME | cut -d- -f2 | cut -d. -f2)" || export VERSION_MINOR='' + # _14 + # _04 export VERSION_FULL="$(echo $FILE_NAME | cut -d- -f2)" + # 10.14 + # 16.04 OLDIFS=$IFS IFS='_' set $PLATFORM_NAME @@ -71,33 +83,6 @@ nIFS=$IFS # fix array splitting (\n won't work) # start with a wait step echo ' - wait' echo '' -# base-image steps -echo ' # base-images' -echo $PLATFORMS_JSON_ARRAY | jq -cr '.[]' | while read -r PLATFORM_JSON; do - if [[ "$(echo "$PLATFORM_JSON" | jq -r .FILE_NAME)" =~ 'macos' ]]; then - cat < Date: Thu, 24 Oct 2019 10:35:50 -0400 Subject: [PATCH 2/2] ensure script name change --- .cicd/generate-pipeline.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cicd/generate-pipeline.sh b/.cicd/generate-pipeline.sh index f6985d264bd..72343870f78 100755 --- a/.cicd/generate-pipeline.sh +++ b/.cicd/generate-pipeline.sh @@ -124,7 +124,7 @@ EOF - 'registry_2' pre-execute-sleep: 5 pre-commands: - - "git clone git@github.com:EOSIO/mac-anka-fleet.git && cd mac-anka-fleet && . ./ensure_tag.bash -u 12 -r 25G -a '-n'" + - "git clone git@github.com:EOSIO/mac-anka-fleet.git && cd mac-anka-fleet && . ./ensure-tag.bash -u 12 -r 25G -a '-n'" env: REPO: ${BUILDKITE_PULL_REQUEST_REPO:-$BUILDKITE_REPO} REPO_COMMIT: $BUILDKITE_COMMIT