diff --git a/Jenkinsfile b/Jenkinsfile index 4022f60..0ff9674 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,16 +18,11 @@ pipeline { sshagent(credentials: ['deploy-ssh-key']) { sh """ ssh ${DEPLOY_USER}@211.117.60.189 'mkdir -p /home/webservice/api-stage/releases/${RELEASE_ID}' - rsync -az --delete \ - --exclude='.git' \ - --exclude='.env' \ - --exclude='storage/app' \ - --exclude='storage/logs' \ - --exclude='storage/framework/sessions' \ - --exclude='storage/framework/cache' \ + --exclude='.git' --exclude='.env' \ + --exclude='storage/app' --exclude='storage/logs' \ + --exclude='storage/framework/sessions' --exclude='storage/framework/cache' \ . ${DEPLOY_USER}@211.117.60.189:/home/webservice/api-stage/releases/${RELEASE_ID}/ - ssh ${DEPLOY_USER}@211.117.60.189 ' cd /home/webservice/api-stage/releases/${RELEASE_ID} && ln -sfn /home/webservice/api-stage/shared/.env .env && @@ -64,16 +59,11 @@ pipeline { sshagent(credentials: ['deploy-ssh-key']) { sh """ ssh ${DEPLOY_USER}@211.117.60.189 'mkdir -p /home/webservice/api/releases/${RELEASE_ID}' - rsync -az --delete \ - --exclude='.git' \ - --exclude='.env' \ - --exclude='storage/app' \ - --exclude='storage/logs' \ - --exclude='storage/framework/sessions' \ - --exclude='storage/framework/cache' \ + --exclude='.git' --exclude='.env' \ + --exclude='storage/app' --exclude='storage/logs' \ + --exclude='storage/framework/sessions' --exclude='storage/framework/cache' \ . ${DEPLOY_USER}@211.117.60.189:/home/webservice/api/releases/${RELEASE_ID}/ - ssh ${DEPLOY_USER}@211.117.60.189 ' cd /home/webservice/api/releases/${RELEASE_ID} && ln -sfn /home/webservice/api/shared/.env .env && @@ -115,4 +105,4 @@ pipeline { } } } -} +} \ No newline at end of file