Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/interface/cli/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ class Command {
}
let aliases = '';
if (option.value.alias) {
let aliasString = '';
_.forEach(option.value.alias, (alias) => {
aliasString += `- ${alias}`;
});
aliases += aliasString;
aliases += `- ${option.value.alias}`;
}
const defaultValue = option.value.default || '';
res.options[group] += `--${key} | ${aliases} | ${defaultValue} | ${description}\n`;
Expand Down
12 changes: 6 additions & 6 deletions lib/interface/cli/commands/pipeline/run.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const authManager = require('../../../../logic').auth.manager;
const run = new Command({
root: true,
command: 'run <name>',
description: 'Run a pipeline and attach the created workflow logs.',
description: 'Run a pipeline by id or name and attach the created workflow logs.',
usage: 'Returns an exit code according to the workflow finish status (Success: 0, Error: 1, Terminated: 2)',
webDocs: {
category: 'Pipelines',
Expand Down Expand Up @@ -55,11 +55,11 @@ const run = new Command({
describe: 'Run pipeline with contexts',
default: [],
})
.example('codefresh run PIPELINE_ID -b=master', 'Defining the source control context using a branch')
.example('codefresh run PIPELINE_ID -s=52b992e783d2f84dd0123c70ac8623b4f0f938d1', 'Defining the source control context using a commit')
.example('codefresh run PIPELINE_ID -b=master -v key1=value1 -v key2=value2', 'Setting variables through the command')
.example('codefresh run PIPELINE_ID -b=master --var-file ./var_file.yml', 'Settings variables through a yml file')
.example('codefresh run PIPELINE_ID -b=master --context context', 'Inject contexts to the pipeline execution');
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master', 'Defining the source control context using a branch')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -s=52b992e783d2f84dd0123c70ac8623b4f0f938d1', 'Defining the source control context using a commit')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master -v key1=value1 -v key2=value2', 'Setting variables through the command')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --var-file ./var_file.yml', 'Settings variables through a yml file')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --context context', 'Inject contexts to the pipeline execution');

crudFilenameOption(yargs, {
name: 'variable-file',
Expand Down
1 change: 1 addition & 0 deletions lib/logic/api/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const _extractFieldsForWorkflowEntity = (workflow) => {
trigger: workflow.trigger,
progress: workflow.progress,
'pipeline-Id': workflow.serviceId,
'commit-Id': workflow.revision,
};
};

Expand Down
1 change: 1 addition & 0 deletions lib/logic/entities/Workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Workflow extends Entity {
'trigger',
'repository',
'branch',
'commit-Id',
];
}

Expand Down