Skip to content

Commit 1b4cd57

Browse files
sanjuyadav24Sanju Yadav
andauthored
Added check for empty pipeline (#21581)
Co-authored-by: Sanju Yadav <[email protected]>
1 parent f96491e commit 1b4cd57

File tree

1 file changed

+2
-2
lines changed
  • ci/ci-test-tasks/test-and-verify-v2/src

1 file changed

+2
-2
lines changed

ci/ci-test-tasks/test-and-verify-v2/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ async function startTestPipeline(pipeline: BuildDefinitionReference, taskName: s
221221
// Enable debug mode for triggered pipelines
222222
const debugMode = process.env.CANARY_TEST_DEBUG_MODE;
223223
const buildParameters: Record<string, string> = {
224-
CANARY_TEST_TASKNAME: pipeline.name,
224+
CANARY_TEST_TASKNAME: pipeline.name || taskName,
225225
CANARY_TEST_BRANCH: branch,
226226
CANARY_TEST_CONFIG: config,
227-
CANARY_TEST_NODE_VERSION: nodeVersion
227+
CANARY_TEST_NODE_VERSION: nodeVersion || ''
228228
};
229229

230230
// Add system.debug parameter (default enabled unless explicitly disabled)

0 commit comments

Comments
 (0)