Add Jenkinsfile
parent
93d31dbc5e
commit
eb8cf05424
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue