Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
cli/pipeline_run: Include variables in job template for pipeline run
Browse files Browse the repository at this point in the history
Prior to this commit, when a pipeline was run, the CLI variables from
the job client were not included in the submitted job template that the
CLI would send to the server to run pipeline jobs. This means any CLI
variables would not be properly resolved when the job went to execute.
This commit fixes that by including those variables in the job template.

Fixes #4134
  • Loading branch information
briancain committed Oct 31, 2022
1 parent b7c98b1 commit dcf7bb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cli/pipeline_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (c *PipelineRunCommand) Run(args []string) int {
Application: app.Ref(),
Workspace: c.project.WorkspaceRef(),
TargetRunner: &pb.Ref_Runner{Target: &pb.Ref_Runner_Any{}},
Variables: c.variables,
}

// build the base api request
Expand Down

0 comments on commit dcf7bb8

Please sign in to comment.