jx icon indicating copy to clipboard operation
jx copied to clipboard

jx pipeline start can't start pull request pipeline

Open msvticket opened this issue 2 years ago • 1 comments

You can't start a pipeline for a pull request with jx pipeline start. If you try by for example give the branch with --branch the following necessary environment variables will not be set in in the build pod:

  • PULL_NUMBER
  • PULL_PULL_REF
  • PULL_PULL_SHA

So you could for example get this error:

+ jx gitops pr variables
error: failed to : missing option: --pr

msvticket avatar Oct 03 '22 16:10 msvticket

Maybe you could technically give those environment variables with --env, but that wouldn't be very practical.

msvticket avatar Oct 03 '22 16:10 msvticket