add own word list for spellchecking. send tarball via mail

This commit is contained in:
Clemens Lauermann 2020-04-22 11:52:42 +02:00
parent 205ea634eb
commit aded1e5b7f
2 changed files with 21 additions and 3 deletions

15
Jenkinsfile vendored
View File

@ -112,8 +112,10 @@ pipeline {
}
steps {
dir(env.GIT_PATH) {
sh "make pdf -C ${env.TEMPLATE_NAME} SOURCEDIR=`pwd`"
sh "hunspell -d de_AT,de_AT_frami,en_US -l -t *.md > diplomarbeit.pdf.spellcheck.txt"
sh"""#!/bin/bash
make pdf -C ${env.TEMPLATE_NAME} SOURCEDIR=`pwd`
hunspell -d de_AT,de_AT_frami,en_US -p ignore.dict -l -t *.md > diplomarbeit.pdf.spellcheck.txt
"""
}
}
}
@ -136,6 +138,13 @@ pipeline {
}
}
}
stage('Create Tarball-Archive') {
steps {
dir(env.GIT_PATH) {
sh "tar -czvf diplomarbeit.tar.gz diplomarbeit.pdf*"
}
}
}
}
post {
always {
@ -156,7 +165,7 @@ pipeline {
}
}
dir(env.GIT_PATH) {
emailext attachmentsPattern: "diplomarbeit.pdf*",
emailext attachmentsPattern: "diplomarbeit.tar.gz",
to: "${env.RECIPIENTS}",
subject: "[${currentBuild.currentResult}] Diplomarbeit Build #${env.BUILD_NUMBER}",
body: "Job ${env.JOB_NAME}: ${env.JOB_URL}"

9
example/ignore.dict Normal file
View File

@ -0,0 +1,9 @@
-
-----
------
---------
.java
PNG
args
array.length.
graph.png