test pipeline config - deploy to nginx server

This commit is contained in:
2025-03-29 09:21:44 -05:00
parent f50afa77e2
commit 25eb86d021
Vendored
+12
View File
@@ -1,11 +1,23 @@
pipeline {
agent any
environment {
DEPLOY_DIR = '/var/jenkins_home/deployments/personal-website'
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('copy to nginx server') {
steps {
sh """
rm -rf ${DEPLOY_DIR}/*
cp -r * ${DEPLOY_DIR}/
chmod -R 755 ${DEPLOY_DIR}
"""
}
}
}
post {
failure {