From b2a68cc7ef1b9d80a39e63ecf2324e22a9dac4f0 Mon Sep 17 00:00:00 2001 From: Ren Kararou Date: Sat, 24 Sep 2022 19:56:12 -0500 Subject: [PATCH] add Jenkinsfile --- Jenkinsfile | 15 +++++++++++++++ Makefile | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e9e084c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,15 @@ +pipeline { +agent { label 'tex' } + stages { + stage('Build') { + steps { + sh 'make' + } + } + } + post { + always { + archiveArtifacts artifacts: 'build/*.pdf', fingerprint: true + } + } +} diff --git a/Makefile b/Makefile index d5be188..ca58e19 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Build variables BASEBDIR=./build -BDIR=$(BASEBDIR)/`git show --oneline | head -1 | cut -d" " -f1` +BDIR=$(BASEBDIR) SDIR=./src BNAME=promise-`git show --oneline | head -1 | cut -d" " -f1` CONF=default.cfg @@ -18,7 +18,7 @@ LASTADDR=Denver, CO EMAIL=ren@kararou.space PHONE=(303)555-4202 -all: pdf epub word cleanbuild timestamp +all: pdf cleanbuild timestamp timestamp: mkbuild if [ -f $(BDIR)/$(BNAME).epub ]; then mv $(BDIR)/$(BNAME).epub $(BDIR)/$(BNAME)-`date -u +%d%m%y-%H%M`.epub; fi