File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -331,16 +331,16 @@ functions:
331
331
wait : true
332
332
# copy ssh key (this key will be used to connect to ssh server)
333
333
- command : shell.exec
334
+ silent : true
334
335
params :
336
+ working_dir : src
335
337
shell : bash
338
+ env :
339
+ __project_aws_ssh_key_value : ${__project_aws_ssh_key_value}
336
340
script : |
337
341
set -e
338
- {
339
- set +x
340
- echo '${__project_aws_ssh_key_value}' > ~/.ssh/mcipacker.pem
341
- chmod 0600 ~/.ssh/mcipacker.pem
342
- set -x
343
- }
342
+ .evergreen/setup-ssh-key.sh
343
+
344
344
# wait for host to be ready
345
345
- command : shell.exec
346
346
params :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+ set +x
5
+ echo " ${__project_aws_ssh_key_value} " > ~ /.ssh/mcipacker.pem
6
+ chmod 0600 ~ /.ssh/mcipacker.pem
You can’t perform that action at this time.
0 commit comments