[Why] my_email field is seted in .config/compass-ci/default/account.yaml, and now the "pub_key" field is not placed under the "sshd" field in yaml. Use "pub_key" to determine whether to password-free login.
Signed-off-by: Zhang Yale ylzhangah@qq.com --- jobs/borrow-10d.yaml | 15 +++++++-------- jobs/borrow-1d.yaml | 16 +++++++--------- 2 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/jobs/borrow-10d.yaml b/jobs/borrow-10d.yaml index aeb55466..a2b50025 100644 --- a/jobs/borrow-10d.yaml +++ b/jobs/borrow-10d.yaml @@ -1,14 +1,13 @@ suite: borrow testcase: borrow
+pub_key: <%= + begin + File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp + rescue + nil + end + %> sshd: - pub_key: <%= - begin - File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp - rescue - nil - end - %> - my_email: # sleep at the bottom sleep: 10d diff --git a/jobs/borrow-1d.yaml b/jobs/borrow-1d.yaml index 72949982..7767f2d7 100644 --- a/jobs/borrow-1d.yaml +++ b/jobs/borrow-1d.yaml @@ -3,15 +3,13 @@ testcase: borrow
timeout: 1d
+pub_key: <%= + begin + File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp + rescue + nil + end + %> sshd: - pub_key: <%= - begin - File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp - rescue - nil - end - %> - my_email: - # sleep at the bottom sleep: 1d