From aded1e5b7f73f92aa2b162fb3d7f494ddfbbfe9a Mon Sep 17 00:00:00 2001 From: Clemens Lauermann Date: Wed, 22 Apr 2020 11:52:42 +0200 Subject: [PATCH] add own word list for spellchecking. send tarball via mail --- Jenkinsfile | 15 ++++++++++++--- example/ignore.dict | 9 +++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 example/ignore.dict diff --git a/Jenkinsfile b/Jenkinsfile index b7ce618..3192102 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" diff --git a/example/ignore.dict b/example/ignore.dict new file mode 100644 index 0000000..2cb07ef --- /dev/null +++ b/example/ignore.dict @@ -0,0 +1,9 @@ +- +----- +------ +--------- +.java +PNG +args +array.length. +graph.png