@@ -23,9 +23,9 @@ const DefaultLogFormatter = 'plain';
2323
2424const defaultOpenIssueMessage = 'If you had any issues with this process please report them at: ' +
2525 `${ colors . blue ( 'https://github.com/codefresh-io/cli/issues/new' ) } ` ;
26- const url = _ . get ( sdk , 'config.context.url' , 'https://g.codefresh.io' ) ;
2726
2827async function createTestPipeline ( runtimeName , pipelineName , pipelineCommands , progressReporter ) {
28+ const url = _ . get ( sdk , 'config.context.url' , 'https://g.codefresh.io' ) ;
2929 console . log ( `Creating test pipeline with the name: "${ colors . cyan ( pipelineName ) } "` ) ;
3030 const pipeline = await sdk . pipelines . create ( { metadata : { name : pipelineName } } ) ;
3131
@@ -62,14 +62,17 @@ async function createTestPipeline(runtimeName, pipelineName, pipelineCommands, p
6262}
6363
6464async function getTestPipelineLink ( pipelineName ) {
65+ const url = _ . get ( sdk , 'config.context.url' , 'https://g.codefresh.io' ) ;
6566 const pipelines = await sdk . pipelines . list ( { id : pipelineName } ) ;
6667 if ( _ . get ( pipelines , 'docs.length' ) ) {
6768 const pipeline = pipelines . docs [ 0 ] ;
6869 return `${ url } /pipelines/edit/workflow?id=${ pipeline . metadata . id } &pipeline=${ encodeURI ( pipeline . metadata . name ) } ` ;
6970 }
71+ return '' ;
7072}
7173
7274async function getTestPipeline ( pipelineName ) {
75+ const url = _ . get ( sdk , 'config.context.url' , 'https://g.codefresh.io' ) ;
7376 const pipelines = await sdk . pipelines . list ( { id : pipelineName } ) ;
7477 if ( _ . get ( pipelines , 'docs.length' ) ) {
7578 const pipeline = pipelines . docs [ 0 ] ;
@@ -84,6 +87,7 @@ async function getTestPipeline(pipelineName) {
8487}
8588
8689async function executeTestPipeline ( runtimeName , pipeline , progressReporter ) {
90+ const url = _ . get ( sdk , 'config.context.url' , 'https://g.codefresh.io' ) ;
8791 const pipelineName = _ . get ( pipeline , 'metadata.name' ) ;
8892
8993 const workflowId = await pipelinesRunCmd . handler ( {
0 commit comments