2024-05-15 15:37:33 +04:00
|
|
|
pipeline {
|
|
|
|
environment {
|
|
|
|
imagename = "aergus/latex"
|
|
|
|
registryCredential = ''
|
|
|
|
dockerImage = ''
|
|
|
|
}
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Cloning Git') {
|
|
|
|
steps {
|
2024-05-15 17:20:11 +04:00
|
|
|
git([url: 'https://10.100.5.20:22023/is.ulstu.ru/iiti-2024.git', branch: 'master', credentialsId: '2'])
|
2024-05-15 15:37:33 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Building pdf') {
|
|
|
|
steps{
|
|
|
|
script {
|
|
|
|
docker.image('aergus/latex').inside {
|
2024-05-15 17:14:48 +04:00
|
|
|
sh 'rm paper.pdf'
|
2024-05-15 15:37:33 +04:00
|
|
|
sh 'latexmk -pdf paper.tex'
|
2024-05-15 16:15:19 +04:00
|
|
|
sh 'git add -f paper.pdf'
|
2024-05-15 16:43:53 +04:00
|
|
|
sh 'git commit -m "add pdf"'
|
2024-05-15 15:37:33 +04:00
|
|
|
sh 'git push origin master'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'paper.pdf', allowEmptyArchive: false, fingerprint: true, onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|