fix(ci): make tests-nim use docker image with nim installed

This commit is contained in:
Patryk Osmaczko 2023-01-11 09:11:48 +01:00 committed by osmaczko
parent bbc7da7c7d
commit d89e6b5ac6
1 changed files with 15 additions and 8 deletions

View File

@ -4,7 +4,12 @@ library 'status-jenkins-lib@v1.6.3'
def isPRBuild = utils.isPRBuild() def isPRBuild = utils.isPRBuild()
pipeline { pipeline {
agent { label 'linux' } agent {
docker {
label 'linux'
image 'statusteam/nim-status-client-build:1.1.5'
}
}
parameters { parameters {
choice( choice(
@ -13,7 +18,7 @@ pipeline {
choices: ['0', '1', '2'] choices: ['0', '1', '2']
) )
} }
options { options {
timestamps() timestamps()
/* Prevent Jenkins jobs from running forever */ /* Prevent Jenkins jobs from running forever */
@ -43,20 +48,22 @@ pipeline {
} }
stages { stages {
stage('Check') { stage('Deps') {
steps { sh 'make tests-nim-linux' } steps {
sh 'make update'
sh 'make deps'
}
} }
stage('Upload') { stage('Tests') {
steps { script { steps { sh 'make tests-nim-linux' }
env.PKG_URL = "${currentBuild.absoluteUrl}/consoleText"
} }
} }
} }
post { post {
success { script { github.notifyPR(true) } } success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } } failure { script { github.notifyPR(false) } }
always { script { env.PKG_URL = "${currentBuild.absoluteUrl}/consoleText" } }
cleanup { cleanWs() } cleanup { cleanWs() }
} }
} }