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