mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-08 00:43:10 +00:00
fix: job name not picked properly to run tests with race
This commit is contained in:
parent
9e6c09e680
commit
40a09d3ed9
@ -39,8 +39,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps { script { dir(env.REPO) {
|
steps {
|
||||||
if (env.JOB_BASE_NAME == "race") {
|
echo "JOB_NAME is $env.JOB_NAME"
|
||||||
|
|
||||||
|
script { dir(env.REPO) {
|
||||||
|
JOBNAME="${JOB_NAME.substring(JOB_NAME.indexOf('/',1) + 1, JOB_NAME.lastIndexOf('/'))}"
|
||||||
|
echo "JOBNAME is $JOBNAME"
|
||||||
|
|
||||||
|
if ($JOBNAME == "race") {
|
||||||
nix.develop('make test-with-race', pure: false)
|
nix.develop('make test-with-race', pure: false)
|
||||||
}else {
|
}else {
|
||||||
nix.develop('make test-ci', pure: false)
|
nix.develop('make test-ci', pure: false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user