You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
973 B
Plaintext

2 months ago
pipeline {
environment {
imagename = "aergus/latex"
registryCredential = ''
dockerImage = ''
}
agent any
stages {
stage('Cloning Git') {
steps {
2 months ago
git([url: 'ssh://git@nio17.ulstu.ru:22023/is.ulstu.ru/iiti-2024.git', branch: 'master', credentialsId: '2'])
2 months ago
}
}
stage('Building pdf') {
steps{
script {
docker.image('aergus/latex').inside {
2 months ago
sh 'rm paper.pdf'
2 months ago
sh 'latexmk -pdf paper.tex'
2 months ago
sh 'git add -f paper.pdf'
2 months ago
sh 'git commit -m "add pdf"'
2 months ago
sh 'git push origin master'
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'paper.pdf', allowEmptyArchive: false, fingerprint: true, onlyIfSuccessful: true
}
}
}