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
986 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@10.100.5.20: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_eng.pdf'
sh 'latexmk -pdf paper_eng.tex'
sh 'git add -f paper_eng.pdf'
2 months ago
sh 'git commit -m "add pdf"'
2 months ago
sh 'git push origin master'
}
}
}
}
}
post {
always {
2 months ago
archiveArtifacts artifacts: 'paper_eng.pdf', allowEmptyArchive: false, fingerprint: true, onlyIfSuccessful: true
2 months ago
}
}
}