From 15e3dedcee1d0830871ffc692143318a87646101 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Thu, 25 Jul 2024 02:12:22 +0200 Subject: wip --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..39b612c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +String cron_string = BRANCH_NAME == "master" ? "@weekly" : "" + +pipeline { + agent any + triggers { cron(cron_string) } + options { ansiColor('xterm') } + stages { + stage('Check') { steps { sh 'bash .scripts.d/10-check.sh' } } + stage('Build') { steps { sh 'bash .scripts.d/20-build.sh' } } + stage('Publish') { + environment { CLOUDFLARE_API_TOKEN = credentials('CLOUDFLARE_PAGES_TOKEN') } + steps { sh 'bash .scripts.d/30-publish.sh' } + } + } + post { + always { + step([$class: 'Mailer', + notifyEveryUnstableBuild: true, + recipients: "christian+jenkins@segundo.io", + sendToIndividuals: true]) + } + } +} -- cgit v1.2.3