Skip to content

Commit a61b649

Browse files
fixed test pipeline link (#487)
* fixed test pipeline link
1 parent 9856f6d commit a61b649

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/interface/cli/commands/hybrid/helper.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const DefaultLogFormatter = 'plain';
2323

2424
const 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

2827
async 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

6464
async 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

7274
async 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

8689
async 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({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.65.1",
3+
"version": "0.65.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)