add Jenkinsfile

This commit is contained in:
Ren Kararou 2022-09-24 19:56:12 -05:00
parent 5d0ac7f0c5
commit b2a68cc7ef
Signed by: spicywolf
GPG key ID: B0BA4EEC0714F8E6
2 changed files with 17 additions and 2 deletions

15
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,15 @@
pipeline {
agent { label 'tex' }
stages {
stage('Build') {
steps {
sh 'make'
}
}
}
post {
always {
archiveArtifacts artifacts: 'build/*.pdf', fingerprint: true
}
}
}

View file

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