From eb8cf05424a845b0e1d8c16f42bd995474cc6e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Desmaretz?= Date: Tue, 8 Oct 2024 22:52:29 +0200 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..64104e3 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent any + stages { + stage('Build') { + when { + branch 'master' + } + steps { + echo 'Building' + sh '''./render.sh''' + } + } + // stage('Deploy') { + // when { + // branch 'master' + // } + // steps { + // echo 'Deploying' + // sshagent(['jenkins-ssh-key']) { + // sh '''ssh airflow@clover "cd ~/airflow/dags && git fetch origin master && git reset --hard origin/master"''' + // } + // } + // } + } + + post { + always { + archiveArtifacts artifacts: 'out/*.pdf', fingerprint: true + } + } +} \ No newline at end of file