paper-cutter/{{cookiecutter.paper_repo_name}}/Jenkinsfile

64 lines
1.3 KiB
Plaintext
Raw Normal View History

pipeline {
2022-02-14 21:58:57 +01:00
agent {
docker {
image 'loxygen/autozoil'
}
}
2022-02-14 21:58:57 +01:00
stages {
stage ('build-pdf') {
steps {
2022-02-14 21:58:57 +01:00
withEnv(["HOME=${env.WORKSPACE}"]) {
sh """
{% if cookiecutter.beeminder_support == 'yes' %}
2022-02-14 21:58:57 +01:00
pip3 install pyyaml pyminder
{% endif %}
make clean
make
"""
2022-02-14 21:58:57 +01:00
}}
post {
always {
archiveArtifacts artifacts: '{{cookiecutter.paper_id}}.pdf', fingerprint: true
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
}
}
}
stage ('autozoil') {
steps {
2022-05-30 21:14:45 +02:00
withEnv(["HOME=${env.WORKSPACE}"]) {
sh """
rm -f autozoil.xml
2022-02-14 21:58:57 +01:00
make autozoil.xml
"""
2022-05-30 21:14:45 +02:00
}}
post {
always {
archiveArtifacts artifacts: 'autozoil.xml', fingerprint: true
2022-02-14 21:58:57 +01:00
// junit testResults: 'autozoil.xml'
}
}
}
2022-02-14 21:58:57 +01:00
{% if cookiecutter.beeminder_support == 'yes' %}
stage ('beeminder') {
steps {
withCredentials([string(credentialsId: 'Beeminder', variable: 'BEEMINDER_TOKEN')]) {
sh """
BEEMINDER_USER=ptlen make logbeeminder
"""
}
}
}
{% endif %}
}
}