iiti-2024/Jenkinsfile

33 lines
1008 B
Plaintext
Raw Normal View History

2024-05-15 15:37:33 +04:00
pipeline {
environment {
imagename = "aergus/latex"
registryCredential = ''
dockerImage = ''
}
agent any
stages {
stage('Cloning Git') {
steps {
2024-05-16 13:49:33 +04:00
git([url: 'https://git.athene.tech/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-16 14:07:29 +04:00
// sh 'rm paper_eng_short.pdf'
2024-05-16 14:03:07 +04:00
sh 'latexmk -pdf paper_eng_short.tex'
// sh 'git add -f paper_eng.pdf'
// sh 'git commit -m "add pdf"'
// sh 'git push origin master'
2024-05-15 15:37:33 +04:00
}
}
}
}
}
post {
always {
2024-05-16 14:03:07 +04:00
archiveArtifacts artifacts: 'paper_eng_short.pdf', allowEmptyArchive: false, fingerprint: true, onlyIfSuccessful: true
2024-05-15 15:37:33 +04:00
}
}
}