From 5f162223e982ef715587787d20a6238e8059fb9c Mon Sep 17 00:00:00 2001 From: jannisp Date: Wed, 11 Aug 2021 10:54:26 +0200 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..da57394 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,17 @@ +node { + stage('Pull git') { + checkout scm + } + + stage('Build PDF') { + sh 'pdflatex *.tex' + } + + stage('Archive PDF') { + archiveArtifacts artifacts: '*.pdf', followSymlinks: false + } + + stage('Publish PDF') { + sh 'scp -i /root/.ssh/id_rsa *.pdf jannis@192.168.178.45:/var/www/html/download/latex-previews/mathematik-v-zf.pdf' + } +} \ No newline at end of file