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({
6969 type : Array ,
7070 default : [ ] ,
7171 } )
72+ . option ( 'pipeline-trigger-id' , {
73+ describe : 'Filter results by pipeline trigger id' ,
74+ type : Array ,
75+ default : [ ] ,
76+ } )
7277 . example ( 'codefresh get build ID' , 'Get build ID' )
7378 . example ( 'codefresh get builds' , 'Get all builds' )
7479 . example ( 'codefresh get builds --pipeline-id ID' , 'Get all builds that are executions of pipeline "ID"' )
@@ -85,6 +90,7 @@ const command = new Command({
8590 trigger,
8691 branch : branchName ,
8792 commitId : revision ,
93+ 'pipeline-trigger-id' : pipelineTriggerId ,
8894 } = argv ;
8995 const pipelineNames = ! _ . isArray ( argv [ 'pipeline-name' ] ) ? [ ( argv [ 'pipeline-name' ] ) ] : argv [ 'pipeline-name' ] ;
9096 const pipelineIds = ! _ . isArray ( argv [ 'pipeline-id' ] ) ? [ ( argv [ 'pipeline-id' ] ) ] : argv [ 'pipeline-id' ] ;
@@ -114,6 +120,7 @@ const command = new Command({
114120 trigger,
115121 branchName,
116122 revision,
123+ pipelineTriggerId,
117124 pipeline : _ . isEmpty ( pipelineIds ) ? undefined : pipelineIds ,
118125 } ) ;
119126 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 {
2323 'repository' ,
2424 'branch' ,
2525 'commit-Id' ,
26+ 'pipeline-trigger-id' ,
2627 ] ;
2728 }
2829
@@ -52,6 +53,7 @@ class Workflow extends Entity {
5253 progress : response . progress ,
5354 'pipeline-Id' : response . serviceId ,
5455 'commit-Id' : response . revision ,
56+ 'pipeline-trigger-id' : response . pipelineTriggerId ,
5557 } ) ;
5658 }
5759}
Original file line number Diff line number Diff line change 16611661 "type" : " string"
16621662 },
16631663 "description" : " branch name"
1664+ },
1665+ {
1666+ "name" : " pipelineTriggerId" ,
1667+ "in" : " query" ,
1668+ "schema" : {
1669+ "type" : " string"
1670+ },
1671+ "description" : " Pipeline trigger id"
16641672 }
16651673 ],
16661674 "responses" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.19.0 " ,
3+ "version" : " 0.19.1 " ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments