Skip to content

Commit d590c64

Browse files
added example for skip option for running pipeline (#629)
* added example for skip option for running pipeline * version * removed ci-publish
1 parent 1f73cdb commit d590c64

File tree

4 files changed

+54
-1376
lines changed

4 files changed

+54
-1376
lines changed

codefresh-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ steps:
8282

8383
deploy_to_npm:
8484
title: "Publishing To Npm"
85-
image: codefresh/npm-publish:master
86-
commands:
87-
- NPM_TOKEN=${{NPM_TOKEN}} npm run ci-publish
85+
type: npm-publish
86+
arguments:
87+
NPM_TOKEN: '${{NPM_TOKEN}}'
88+
DIR: ./cli
8889

8990
compile_executables:
9091
title: "Compiling executables"

lib/interface/cli/commands/pipeline/run.cmd.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ const run = new Command({
112112
type: 'boolean',
113113
})
114114
.option('only', {
115-
describe: 'run only specifc steps',
115+
describe: 'run only specific steps',
116116
array: true,
117117
})
118118
.option('skip', {
119-
describe: 'skip specifc steps',
119+
describe: 'skip specific steps',
120120
array: true,
121121
})
122122
.option('debug', {
@@ -127,7 +127,8 @@ const run = new Command({
127127
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -s=52b992e783d2f84dd0123c70ac8623b4f0f938d1', 'Defining the source control context using a commit')
128128
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master -v key1=value1 -v key2=value2', 'Setting variables through the command')
129129
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --var-file ./var_file.yml', 'Settings variables through a yml file')
130-
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --context context', 'Inject contexts to the pipeline execution');
130+
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --context context', 'Inject contexts to the pipeline execution')
131+
.example('codefresh run PIPELINE_ID | PIPELINE_NAME --skip step1 step2 step3', 'Skip specific steps');
131132

132133
crudFilenameOption(yargs, {
133134
name: 'variable-file',

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "codefresh",
3-
"version": "0.74.8",
3+
"version": "0.74.9",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
77
"scripts": {
88
"generate-completion": "node ./lib/interface/cli/completion/generate",
99
"test": "jest .spec.js --coverage",
1010
"eslint": "eslint lib1logic/**",
11-
"ci-publish": "ci-publish",
1211
"pkg": "pkg . -t node10-alpine-x64,node10-macos-x64,node10-linux-x64,node10-win-x64 --out-path ./dist",
1312
"serve-docs": "yarn build-local-docs && cd temp && hugo server -D",
1413
"serve-docs-beta": "ALLOW_BETA_COMMANDS=true yarn build-local-docs && cd temp && hugo server -D",
@@ -77,7 +76,6 @@
7776
"yargs-parser": "^13.0.0"
7877
},
7978
"devDependencies": {
80-
"ci-publish": "^1.3.0",
8179
"eslint": "^4.11.0",
8280
"eslint-config-airbnb-base": "^12.1.0",
8381
"eslint-plugin-import": "^2.8.0",

0 commit comments

Comments
 (0)