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

65 lines
1.4 KiB
Plaintext
Raw Permalink 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-06-06 20:03:04 +02:00
make autozoil
"""
2022-05-30 21:14:45 +02:00
}}
post {
always {
2022-06-06 20:03:04 +02:00
archiveArtifacts artifacts: 'autozoil*.xml', fingerprint: true
junit testResults: 'autozoil-external-check.xml', skipPublishingChecks: 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 %}
}
}