diff options
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index ad6a568..2f841c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,10 @@ String cron_string = BRANCH_NAME == "master" ? "@daily" : "" pipeline { - agent none - options { parallelsAlwaysFailFast() } + agent any + options { + ansiColor('xterm') + parallelsAlwaysFailFast() + } triggers { cron(cron_string) } stages { stage('Lint') { @@ -11,21 +14,24 @@ pipeline { alwaysPull true } } - steps { sh 'make lint' } + steps { + sh 'apk --no-cache add stylua luacheck' + sh 'make lint' + } } stage('Test') { matrix { agent { docker { - image "${DOCKER_IMAGE}" + image "chn2guevara/nvim:${TAG}" alwaysPull true - customWorkspace "workspace/${JOB_NAME}/IMAGE/${DOCKER_IMAGE}/" + customWorkspace "workspace/${JOB_NAME}/${BUILD_NUMBER}/IMAGE/chn2guevara-nvim-${TAG}/" } } axes { axis { - name 'DOCKER_IMAGE' - values 'chn2guevara/nvim:stable', 'chn2guevara/nvim:nightly' + name 'TAG' + values 'stable', 'nightly' } } stages { @@ -48,4 +54,12 @@ pipeline { } } } + post { + always { + step([$class: 'Mailer', + notifyEveryUnstableBuild: true, + recipients: "christian+jenkins@segundo.io", + sendToIndividuals: true]) + } + } } |