32 lines
972 B
Groovy
32 lines
972 B
Groovy
pipeline {
|
|
environment {
|
|
imagename = "aergus/latex"
|
|
registryCredential = ''
|
|
dockerImage = ''
|
|
}
|
|
agent any
|
|
stages {
|
|
stage('Cloning Git') {
|
|
steps {
|
|
git([url: 'https://git.athene.tech/is.ulstu.ru/iiti-2024.git', branch: 'master', credentialsId: '2'])
|
|
}
|
|
}
|
|
stage('Building pdf') {
|
|
steps{
|
|
script {
|
|
docker.image('aergus/latex').inside {
|
|
sh 'latexmk -pdf paper.tex'
|
|
sh 'git add -f paper.pdf'
|
|
sh 'git commit -a -m "add pdf" --author="Anton Romanov <a.romanov@ulstu.ru>'
|
|
sh 'git push origin master'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'paper.pdf', allowEmptyArchive: false, fingerprint: true, onlyIfSuccessful: true
|
|
}
|
|
}
|
|
} |