Skip to content

Commit

Permalink
ci(jenkins): use MAKEFLAGS and NIMFLAGS pipeline params in build and …
Browse files Browse the repository at this point in the history
…test stages
  • Loading branch information
Lorenzo Delgado authored Oct 25, 2022
1 parent 7e7bba4 commit efd1496
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/Jenkinsfile.prs
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ pipeline {
v1changed = versionWasChanged('v1')
v2changed = versionWasChanged('v2')
/* TODO: Re-add caching of Nim compiler. */
nix.shell("make V=${params.VERBOSITY} update", pure: false)
nix.shell("make V=${params.VERBOSITY} deps", pure: false)
nix.shell("make ${params.MAKEFLAGS} V=${params.VERBOSITY} update", pure: false)
nix.shell("make ${params.MAKEFLAGS} V=${params.VERBOSITY} deps", pure: false)
} } }

stage('Binaries') {
parallel {
stage('V1') {
when { expression { v1changed } }
steps { script {
nix.shell("make V=${params.VERBOSITY} v1")
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} v1")
} }
}
stage('V2') {
when { expression { v2changed } }
steps { script {
nix.shell("make V=${params.VERBOSITY} v2")
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} v2")
} }
}
}
Expand All @@ -79,13 +79,13 @@ pipeline {
stage('V1') {
when { expression { v1changed } }
steps { script {
nix.shell("make V=${params.VERBOSITY} test1")
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} test1")
} }
}
stage('V2') {
when { expression { v2changed } }
steps { script {
nix.shell("make V=${params.VERBOSITY} test2")
nix.shell("make ${params.MAKEFLAGS} NIMFLAGS=\"${params.NIMFLAGS}\" V=${params.VERBOSITY} test2")
} }
}
}
Expand Down

0 comments on commit efd1496

Please sign in to comment.