mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-04 06:53:06 +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') {
|
||||
steps { script { dir(env.REPO) {
|
||||
if (env.JOB_BASE_NAME == "race") {
|
||||
steps {
|
||||
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)
|
||||
}else {
|
||||
nix.develop('make test-ci', pure: false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user