build to different host directory

This commit is contained in:
2025-04-05 21:45:26 -05:00
parent 2ea7165db6
commit 1fe1b5c6a0
Vendored
+2 -2
View File
@@ -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}
"""
}