small fix for TR_CASE_IDS parameter
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
2fda266f07
commit
e8150d7187
|
@ -29,6 +29,7 @@ pipeline {
|
||||||
string(
|
string(
|
||||||
name: 'TR_CASE_IDS',
|
name: 'TR_CASE_IDS',
|
||||||
description: 'IDs of the TestRail case, separated by a comma. (Optional)',
|
description: 'IDs of the TestRail case, separated by a comma. (Optional)',
|
||||||
|
defaultValue: '',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +55,8 @@ pipeline {
|
||||||
steps { script {
|
steps { script {
|
||||||
currentBuild.displayName = "PR-${params.PR_ID}"
|
currentBuild.displayName = "PR-${params.PR_ID}"
|
||||||
/* for managing optional arguments */
|
/* for managing optional arguments */
|
||||||
def extraPytestOpts = ""
|
def extraPytestOpts = ''
|
||||||
if (params.TR_CASE_IDS != "") {
|
if (params.TR_CASE_IDS != '') {
|
||||||
extraPytestOpts = "--run_testrail_ids='${params.TR_CASE_IDS}'"
|
extraPytestOpts = "--run_testrail_ids='${params.TR_CASE_IDS}'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue