File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed
lib/interface/cli/commands/pipeline Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ class RunBaseCommand {
23
23
const contexts = this . argv . context ;
24
24
const noCfCache = this . argv [ 'no-cf-cache' ] ;
25
25
const trigger = this . argv [ 'trigger' ] ;
26
+ const only = this . argv [ 'only' ] ;
27
+ const skip = this . argv [ 'skip' ] ;
26
28
27
29
const executionRequestTemplate = {
28
30
pipelineName,
@@ -35,6 +37,8 @@ class RunBaseCommand {
35
37
userYamlDescriptor,
36
38
noCfCache,
37
39
trigger,
40
+ only,
41
+ skip
38
42
} ,
39
43
} ;
40
44
if ( variablesFromFile ) {
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ function _buildBody(data) {
42
42
if ( data . trigger ) {
43
43
body . trigger = data . trigger ;
44
44
}
45
+ if ( data . skip ) {
46
+ body . options . skip = data . skip ;
47
+ }
48
+ if ( data . only ) {
49
+ body . options . only = data . only ;
50
+ }
45
51
return body ;
46
52
}
47
53
Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ const run = new Command({
82
82
alias : 'ncfc' ,
83
83
default : false ,
84
84
} )
85
+ . option ( 'only' , {
86
+ describe : 'run only specifc steps' ,
87
+ array : true
88
+ } )
89
+ . option ( 'skip' , {
90
+ describe : 'skip specifc steps' ,
91
+ array : true
92
+ } )
85
93
. example ( 'codefresh run PIPELINE_ID | PIPELINE_NAME -trigger TRIGGER_ID | TRIGGER_NAME -b=master' , 'Choosing a specific trigger' )
86
94
. example ( 'codefresh run PIPELINE_ID | PIPELINE_NAME -b=master' , 'Defining the source control context using a branch' )
87
95
. example ( 'codefresh run PIPELINE_ID | PIPELINE_NAME -s=52b992e783d2f84dd0123c70ac8623b4f0f938d1' , 'Defining the source control context using a commit' )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.24.0 " ,
3
+ "version" : " 0.24.1 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments