From d13eef4c4b4adf6d79bd30c791ffa742901fd39b Mon Sep 17 00:00:00 2001 From: Souhaila Noor Date: Tue, 23 Nov 2021 17:09:35 -0600 Subject: [PATCH] echo errors --- .gitlab/.gitlab-ci.yml | 3 +-- qa/scripts/deployNode.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 18e7d76a2..f2dbeee30 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -198,7 +198,7 @@ build container fb: # deploy EC2 instance and save instance ID to a text file deploy node for linux amd64: - stage: integration + stage: lint image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest variables: PROFILE: "default" @@ -209,7 +209,6 @@ deploy node for linux amd64: - aws configure set region "us-east-2" - aws configure set aws_profile $PROFILE - echo $AWS_SSH_PRIVATE_KEY > gitlab-featurebase-dev.pem - - echo $AWS_SSH_PRIVATE_KEY > gitlab-featurebase-dev.pem - chmod 400 gitlab-featurebase-dev.pem - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval `ssh-agent -s` diff --git a/qa/scripts/deployNode.sh b/qa/scripts/deployNode.sh index 3511c78b7..816f87a48 100755 --- a/qa/scripts/deployNode.sh +++ b/qa/scripts/deployNode.sh @@ -49,6 +49,7 @@ REGION="us-east-2" # launch instance, save instance Id and run cloud-init to set up node env deploy_node if [ $? > 0 ]; then + echo "Error: " >&2 exit 1 fi @@ -57,7 +58,9 @@ fi initialize_featurebase if [ $? > 0 ]; then terminate_node + echo "Error: " >&2 exit 1 else terminate_node + exit 0 fi \ No newline at end of file