build to different host directory
This commit is contained in:
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
DEPLOY_DIR = '/var/jenkins_home/deployments/personal-website'
|
DEPLOY_DIR = '/mnt/jenkins_deployments/personal-website'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
@@ -13,7 +13,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
rm -rf ${DEPLOY_DIR}/*
|
rm -rf ${DEPLOY_DIR}/*
|
||||||
cp -r * ${DEPLOY_DIR}/
|
cp -r ${WORKSPACE}/* ${DEPLOY_DIR}/"
|
||||||
chmod -R 755 ${DEPLOY_DIR}
|
chmod -R 755 ${DEPLOY_DIR}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user