File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
interface/cli/commands/workflow Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ const command = new Command({
69
69
type : Array ,
70
70
default : [ ] ,
71
71
} )
72
+ . option ( 'pipeline-trigger-id' , {
73
+ describe : 'Filter results by pipeline trigger id' ,
74
+ type : Array ,
75
+ default : [ ] ,
76
+ } )
72
77
. example ( 'codefresh get build ID' , 'Get build ID' )
73
78
. example ( 'codefresh get builds' , 'Get all builds' )
74
79
. example ( 'codefresh get builds --pipeline-id ID' , 'Get all builds that are executions of pipeline "ID"' )
@@ -85,6 +90,7 @@ const command = new Command({
85
90
trigger,
86
91
branch : branchName ,
87
92
commitId : revision ,
93
+ 'pipeline-trigger-id' : pipelineTriggerId ,
88
94
} = argv ;
89
95
const pipelineNames = ! _ . isArray ( argv [ 'pipeline-name' ] ) ? [ ( argv [ 'pipeline-name' ] ) ] : argv [ 'pipeline-name' ] ;
90
96
const pipelineIds = ! _ . isArray ( argv [ 'pipeline-id' ] ) ? [ ( argv [ 'pipeline-id' ] ) ] : argv [ 'pipeline-id' ] ;
@@ -114,6 +120,7 @@ const command = new Command({
114
120
trigger,
115
121
branchName,
116
122
revision,
123
+ pipelineTriggerId,
117
124
pipeline : _ . isEmpty ( pipelineIds ) ? undefined : pipelineIds ,
118
125
} ) ;
119
126
Output . print ( result . workflows . docs . map ( Workflow . fromResponse ) ) ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class Workflow extends Entity {
23
23
'repository' ,
24
24
'branch' ,
25
25
'commit-Id' ,
26
+ 'pipeline-trigger-id' ,
26
27
] ;
27
28
}
28
29
@@ -52,6 +53,7 @@ class Workflow extends Entity {
52
53
progress : response . progress ,
53
54
'pipeline-Id' : response . serviceId ,
54
55
'commit-Id' : response . revision ,
56
+ 'pipeline-trigger-id' : response . pipelineTriggerId ,
55
57
} ) ;
56
58
}
57
59
}
Original file line number Diff line number Diff line change 1661
1661
"type" : " string"
1662
1662
},
1663
1663
"description" : " branch name"
1664
+ },
1665
+ {
1666
+ "name" : " pipelineTriggerId" ,
1667
+ "in" : " query" ,
1668
+ "schema" : {
1669
+ "type" : " string"
1670
+ },
1671
+ "description" : " Pipeline trigger id"
1664
1672
}
1665
1673
],
1666
1674
"responses" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.19.0 " ,
3
+ "version" : " 0.19.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