Updated tex files with latest information about the program
This commit is contained in:
1 parent
f0716b0073
commit
0f8db48407
91 files changed
+489
-822
No files matched your search
Vendored
+34
@@ -66,6 +66,30 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build LaTeX') {
|
||||
when { branch pattern: 'release/**', comparator: 'GLOB' }
|
||||
steps {
|
||||
script {
|
||||
String gitCredentials = scm.userRemoteConfigs[0].credentialsId
|
||||
if (!gitCredentials) { error('Release builds require an SCM SSH credential with permission to push tags') }
|
||||
sshagent(credentials: [gitCredentials]) {
|
||||
sh 'mkdir -p target && sh scripts/release-notes.sh generate "$BUILD_VERSION" > target/release-notes.md'
|
||||
}
|
||||
}
|
||||
sh 'awk -f scripts/release-notes.awk target/release-notes.md > docs/src/appendix/ReleaseNotes.tex'
|
||||
dir('docs/src') {
|
||||
sh '''
|
||||
mkdir -p ../../target/latex
|
||||
# Repeat to resolve cross-references and the table of contents.
|
||||
for pass in 1 2 3; do
|
||||
pdflatex -file-line-error -interaction=nonstopmode -halt-on-error -output-directory=../../target/latex portal.tex
|
||||
done
|
||||
'''
|
||||
}
|
||||
archiveArtifacts artifacts: 'target/latex/portal.pdf,target/release-notes.md,docs/src/appendix/ReleaseNotes.tex', fingerprint: true
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
when { expression { env.DEPLOY_BUILD == 'true' } }
|
||||
steps {
|
||||
@@ -74,6 +98,16 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Tag release') {
|
||||
when { branch pattern: 'release/**', comparator: 'GLOB' }
|
||||
steps {
|
||||
script {
|
||||
sshagent(credentials: [scm.userRemoteConfigs[0].credentialsId]) {
|
||||
sh 'sh scripts/release-notes.sh publish "$BUILD_VERSION"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
Reference in new issue
Block a user