Workshop 1: Ortho-rector of markdown documents (test)
- The URL of your GitHub repository.
https://github.com/javierasping/taller1_jenkins_ic-diccionario
- The content of your file ‘Jenkinfle’.
pipeline {
agent {
docker {
image 'debian'
args '-u root:root'
}
}
stages {
stage('Clone') {
steps {
git branch:'master', url:'https://github.com/javierasping/taller1_jenkins_ic-diccionario.git'
}
}
stage('Install') {
steps {
sh 'apt-get update && apt-get install -y aspell-es '
}
}
stage('Test') {
steps {
sh '''
export LC_ALL=C.UTF-8
OUTPUT=`cat doc/*.md | aspell list -d es -p ./.aspell.es.pws`
if [ -n "$OUTPUT" ]; then
echo $OUTPUT
exit 1
fi
'''
}
}
}
post {
always {
mail to: 'javierasping@gmail.com',
subject: "Status of pipeline: ${currentBuild.fullDisplayName}",
body: "${env.BUILD_URL} has result ${currentBuild.result}"
}
}
}
- A screenshot where you see the pipeline trigger configuration.


- A capture of an email received without any error, and another with some error in the execution of the pipeline.

