Add comments to Jenkinsfile

This commit is contained in:
Filip Gralinski 2021-11-29 13:27:43 +01:00
parent 2b952bd5b8
commit 2c3e25987a
1 changed files with 13 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -1,12 +1,25 @@
pipeline {
agent any
// We'll be running in a custom Docker image, but could be a ready-made
// image from DockerHub
//
// agent {
// docker {
// image 'loxygen/arch-latex'
// }
// }
stages {
stage('Test') {
steps {
script {
// Custom Docker image, see Dockerfile
def customImage = docker.build("paper-cutter:${env.BUILD_ID}")
customImage.inside() {
dir('test') {
// The user under which the job is run does not have a proper home directory (!)
sh 'export PATH="$PATH:/usr/bin/vendor_perl"; export fakehomedir=`pwd`/fakehome; rm -rf $fakehomedir; mkdir $fakehomedir; export HOME=$fakehomedir; git config --global user.email "testing@testing.invalid"; git config --global user.name "testing"; bash run_tests.sh'
}
}