You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"+++ :warning: Failed to download ssh-key $key">&2;
48
44
exit 1
49
45
fi
50
-
done
51
-
52
-
if [[ -z"${key_found:-}" ]] && [[ "${BUILDKITE_REPO:-}"=~ ^git@ ]] ;then
53
-
echo>&2"+++ :warning: Failed to find an SSH key in secret bucket"
54
-
echo>&2"The repository '$BUILDKITE_REPO' appears to use SSH for transport, but the elastic-ci-stack-s3-secrets-hooks plugin did not find any SSH keys in the $s3_bucket S3 bucket."
55
-
echo>&2"See https://github.com/buildkite/elastic-ci-stack-for-aws#build-secrets for more information."
46
+
echo"Downloaded ${#ssh_key} bytes of ssh key"
47
+
add_ssh_private_key_to_agent "$ssh_key"
48
+
key_found=1
49
+
elif [[ $?-eq 2 ]] ;then
50
+
echo"+++ :warning: Failed to check if $key exists">&2;
echo"+++ :warning: Failed to download env from $key">&2;
73
-
exit 1
74
-
fi
75
-
echo"Evaluating ${#envscript} bytes of env"
76
-
set -o allexport
77
-
eval"$envscript"
78
-
set +o allexport
79
-
elif [[ $?-eq 2 ]] ;then
80
-
echo"Failed to check if $key exists">&2;
81
-
fi
82
-
done
55
+
if [[ -z"${key_found:-}" ]] && [[ "${BUILDKITE_REPO:-}"=~ ^git@ ]] ;then
56
+
echo>&2"+++ :warning: Failed to find an SSH key in secret bucket"
57
+
echo>&2"The repository '$BUILDKITE_REPO' appears to use SSH for transport, but the elastic-ci-stack-s3-secrets-hooks plugin did not find any SSH keys in the $s3_bucket S3 bucket."
58
+
echo>&2"See https://github.com/buildkite/elastic-ci-stack-for-aws#build-secrets for more information."
0 commit comments