summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Segundo2024-07-25 02:12:22 +0200
committerChristian Segundo2024-07-28 12:58:19 +0200
commit15e3dedcee1d0830871ffc692143318a87646101 (patch)
tree3e15f8a3f5082b7df89d208a4c8189b8ad453998 /Jenkinsfile
parenta248abee10bbcda6282982d72788acf689deb7aa (diff)
downloadcheck-caps-lock-15e3dedcee1d0830871ffc692143318a87646101.tar.gz
wip
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile23
1 files changed, 23 insertions, 0 deletions
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])
+ }
+ }
+}