diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..47155f2 --- /dev/null +++ b/Jenkinsfile @@ -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}/' } + } + } +} \ No newline at end of file