add Jenkinsfile
This commit is contained in:
parent
5d0ac7f0c5
commit
b2a68cc7ef
15
Jenkinsfile
vendored
Normal file
15
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
pipeline {
|
||||
agent { label 'tex' }
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'make'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: 'build/*.pdf', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in a new issue