ci: add Jenkinsfile for CI/CD pipeline

This commit is contained in:
DESKTOP-TKLFCPR\ython 2026-06-01 19:49:03 +09:00
parent c256fface1
commit 7f313b4e55

12
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,12 @@
pipeline {
agent any
environment { DOCS = '/var/www/docs' }
options { buildDiscarder(logRotator(numToKeepStr: '3')) }
stages {
stage('Checkout') { steps { checkout scm } }
stage('Deploy') {
when { branch 'main' }
steps { sh 'mkdir -p ${DOCS} && cp -r . ${DOCS}/' }
}
}
}