cookiecutter-amu-thesis/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Jenkinsfile

65 lines
1.9 KiB
Plaintext
Raw Normal View History

2019-12-02 18:02:20 +01:00
pipeline {
2019-12-02 20:25:31 +01:00
agent { label 'tau2013z' }
2019-12-02 18:02:20 +01:00
2019-12-02 20:25:31 +01:00
stages {
stage ('get-autozoil') {
2019-12-02 20:46:51 +01:00
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'autozoil']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitlab.com/filipg/autozoil.git']]])
}
2019-12-02 20:25:31 +01:00
}
2019-12-02 20:15:30 +01:00
2019-12-02 18:02:20 +01:00
stage ('build-pdf') {
2019-12-02 20:46:51 +01:00
steps {
sh """
2019-12-02 18:02:20 +01:00
bash build.sh
"""
2019-12-02 20:46:51 +01:00
}
2019-12-02 20:25:31 +01:00
post {
always {
archiveArtifacts artifacts: '{{cookiecutter.thesis_surname}}.pdf', fingerprint: true
2019-12-02 20:46:51 +01:00
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
plot csvFileName: 'stats.txt',
csvSeries: [[
file: 'stats.txt',
exclusionValues: '',
displayTableFlag: false,
inclusionFlag: 'OFF',
url: '']],
group: 'Plot Group',
title: 'Plot Title',
style: 'line',
exclZero: false,
keepRecords: false,
logarithmic: false,
numBuilds: '',
useDescr: false,
yaxis: '',
yaxisMaximum: '',
yaxisMinimum: ''
2019-12-02 20:25:31 +01:00
}
}
2019-12-02 18:02:20 +01:00
}
2019-12-02 20:15:30 +01:00
stage ('autozoil') {
2019-12-02 20:46:51 +01:00
steps {
2019-12-02 20:15:30 +01:00
sh """
2019-12-02 20:15:59 +01:00
AUTOZOIL_DIR=autozoil bash check.sh
2019-12-02 20:15:30 +01:00
"""
2019-12-02 20:46:51 +01:00
}
post {
always {
archiveArtifacts artifacts: 'autozoil.xml', fingerprint: true
junit 'autozoil.xml'
}
}
2019-12-02 20:15:30 +01:00
}
2019-12-02 18:02:20 +01:00
}
}