Skip to content

Commit

Permalink
fix(ci): make tests-nim use docker image with nim installed
Browse files Browse the repository at this point in the history
  • Loading branch information
osmaczko committed Jan 11, 2023
1 parent bbc7da7 commit d89e6b5
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions ci/Jenkinsfile.tests-nim
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -13,7 +18,7 @@ pipeline {
choices: ['0', '1', '2']
)
}

options {
timestamps()
/* Prevent Jenkins jobs from running forever */
Expand Down Expand Up @@ -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() }
}
}

0 comments on commit d89e6b5

Please sign in to comment.