2020-11-24 08:33:07 +01:00
|
|
|
pipeline {
|
|
|
|
|
2022-02-14 21:58:57 +01:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'loxygen/autozoil'
|
|
|
|
}
|
|
|
|
}
|
2020-11-24 08:33:07 +01:00
|
|
|
|
|
|
|
|
2022-02-14 21:58:57 +01:00
|
|
|
stages {
|
2020-11-24 08:33:07 +01:00
|
|
|
|
|
|
|
stage ('build-pdf') {
|
|
|
|
steps {
|
2022-02-14 21:58:57 +01:00
|
|
|
withEnv(["HOME=${env.WORKSPACE}"]) {
|
|
|
|
sh """
|
|
|
|
pip3 install pyyaml pyminder
|
2020-11-24 08:33:07 +01:00
|
|
|
make clean
|
|
|
|
make
|
|
|
|
"""
|
2022-02-14 21:58:57 +01:00
|
|
|
}}
|
2020-11-24 08:33:07 +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 """
|
2020-11-24 08:33:07 +01:00
|
|
|
rm -f autozoil.xml
|
2022-02-14 21:58:57 +01:00
|
|
|
make autozoil.xml
|
2020-11-24 08:33:07 +01:00
|
|
|
"""
|
2022-05-30 21:14:45 +02:00
|
|
|
}}
|
2020-11-24 08:33:07 +01:00
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'autozoil.xml', fingerprint: true
|
2022-02-14 21:58:57 +01:00
|
|
|
// junit testResults: 'autozoil.xml'
|
2020-11-24 08:33:07 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 %}
|
2020-11-24 08:33:07 +01:00
|
|
|
}
|
|
|
|
}
|