File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ type Spec struct {
92
92
FailFast * bool `json:"fail_fast,omitempty"`
93
93
RuntimeEnvironment RuntimeEnvironment `json:"runtimeEnvironment,omitempty"`
94
94
TerminationPolicy []map [string ]interface {} `json:"terminationPolicy,omitempty"`
95
+ PackId string `json:"packId,omitempty"`
95
96
Hooks * Hooks `json:"hooks,omitempty"`
96
97
Options map [string ]bool `json:"options,omitempty"`
97
98
}
Original file line number Diff line number Diff line change @@ -310,6 +310,10 @@ func resourcePipeline() *schema.Resource {
310
310
},
311
311
},
312
312
},
313
+ "pack_id" : {
314
+ Type : schema .TypeString ,
315
+ Optional : true ,
316
+ },
313
317
"runtime_environment" : {
314
318
Type : schema .TypeList ,
315
319
Optional : true ,
@@ -505,10 +509,12 @@ func flattenSpec(spec cfClient.Spec) []interface{} {
505
509
m ["options" ] = resOptions
506
510
}
507
511
512
+ m ["pack_id" ] = spec .PackId
508
513
m ["concurrency" ] = spec .Concurrency
509
514
m ["branch_concurrency" ] = spec .BranchConcurrency
510
515
m ["trigger_concurrency" ] = spec .TriggerConcurrency
511
516
517
+
512
518
m ["priority" ] = spec .Priority
513
519
514
520
m ["contexts" ] = spec .Contexts
@@ -633,6 +639,7 @@ func mapResourceToPipeline(d *schema.ResourceData) *cfClient.Pipeline {
633
639
OriginalYamlString : originalYamlString ,
634
640
},
635
641
Spec : cfClient.Spec {
642
+ PackId : d .Get ("spec.0.pack_id" ).(string ),
636
643
Priority : d .Get ("spec.0.priority" ).(int ),
637
644
Concurrency : d .Get ("spec.0.concurrency" ).(int ),
638
645
BranchConcurrency : d .Get ("spec.0.branch_concurrency" ).(int ),
You can’t perform that action at this time.
0 commit comments