Add Jenkinsfile

master
Félix Desmaretz 2024-10-08 22:52:29 +02:00
parent 93d31dbc5e
commit eb8cf05424
1 changed files with 31 additions and 0 deletions

31
Jenkinsfile vendored Normal file
View File

@ -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
}
}
}