File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ type Spec struct {
9292 FailFast * bool `json:"fail_fast,omitempty"`
9393 RuntimeEnvironment RuntimeEnvironment `json:"runtimeEnvironment,omitempty"`
9494 TerminationPolicy []map [string ]interface {} `json:"terminationPolicy,omitempty"`
95+ PackId string `json:"packId,omitempty"`
9596 Hooks * Hooks `json:"hooks,omitempty"`
9697 Options map [string ]bool `json:"options,omitempty"`
9798}
Original file line number Diff line number Diff line change @@ -310,6 +310,10 @@ func resourcePipeline() *schema.Resource {
310310 },
311311 },
312312 },
313+ "pack_id" : {
314+ Type : schema .TypeString ,
315+ Optional : true ,
316+ },
313317 "runtime_environment" : {
314318 Type : schema .TypeList ,
315319 Optional : true ,
@@ -505,10 +509,12 @@ func flattenSpec(spec cfClient.Spec) []interface{} {
505509 m ["options" ] = resOptions
506510 }
507511
512+ m ["pack_id" ] = spec .PackId
508513 m ["concurrency" ] = spec .Concurrency
509514 m ["branch_concurrency" ] = spec .BranchConcurrency
510515 m ["trigger_concurrency" ] = spec .TriggerConcurrency
511516
517+
512518 m ["priority" ] = spec .Priority
513519
514520 m ["contexts" ] = spec .Contexts
@@ -633,6 +639,7 @@ func mapResourceToPipeline(d *schema.ResourceData) *cfClient.Pipeline {
633639 OriginalYamlString : originalYamlString ,
634640 },
635641 Spec : cfClient.Spec {
642+ PackId : d .Get ("spec.0.pack_id" ).(string ),
636643 Priority : d .Get ("spec.0.priority" ).(int ),
637644 Concurrency : d .Get ("spec.0.concurrency" ).(int ),
638645 BranchConcurrency : d .Get ("spec.0.branch_concurrency" ).(int ),
You can’t perform that action at this time.
0 commit comments