diff --git a/Jenkinsfile b/Jenkinsfile index 7c49967..6885ccd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any environment { - DEPLOY_DIR = '/var/jenkins_home/deployments/personal-website' + DEPLOY_DIR = '/mnt/jenkins_deployments/personal-website' } stages { stage('Checkout') { @@ -13,7 +13,7 @@ pipeline { steps { sh """ rm -rf ${DEPLOY_DIR}/* - cp -r * ${DEPLOY_DIR}/ + cp -r ${WORKSPACE}/* ${DEPLOY_DIR}/" chmod -R 755 ${DEPLOY_DIR} """ }