See https://build.opnfv.org/ci/job/fuel-deploy-zte-pod1-daily-master/456/console
In lib.sh, generate_ssh_key() assumes that "jenkins" is
the current user name. But on zte-pod1, the ci user name
isn't jenkins. It is better to use $USER replaced "jenkins".
JIRA:FUEL-273
Change-Id: I6ec6847eccd055b8b4062dd202f8f0a24ba6dd73
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
generate_ssh_key() {
[ -f "$SSH_KEY" ] || ssh-keygen -f ${SSH_KEY} -N ''
- install -o jenkins -m 0600 ${SSH_KEY} /tmp/
+ install -o $USER -m 0600 ${SSH_KEY} /tmp/
}
get_base_image() {