ci: add Jenkinsfile for CI/CD pipeline
This commit is contained in:
parent
c256fface1
commit
7f313b4e55
12
Jenkinsfile
vendored
Normal file
12
Jenkinsfile
vendored
Normal 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}/' }
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user