Commit a793cb33 by tingweiwang

scp 为root用户

1 parent 5a0ff200
Showing with 1 additions and 4 deletions
......@@ -17,9 +17,6 @@ recover_yaml() {
echo "恢复yaml模板"
sed -i s@$DOCKER_REGISTRY@hub.kce.ksyun.com@g
sed -i s@$IMAGE@nginx:latestg
}
###################################
delt_all() {
......@@ -33,7 +30,7 @@ kubectl apply -f k8s_yaml
##########################################
deploy_test ()
{
scp -r $WORKSPACE $JOB_NAME $test_host:$project_workspace
sudo scp -r $WORKSPACE $JOB_NAME root@$test_host:$project_workspace
}
:<<!
if[[ $DEPLOY_ENV = "dev" ]]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!