gitness icon indicating copy to clipboard operation
gitness copied to clipboard

Params are empty when branch is empty

Open rtudo opened this issue 2 years ago • 1 comments

When - When you do not set any branch in the Create Build Option but set params

Issue - params in the build context is empty when you want to go with default branch of your repo but want to use some params

Reproduce - Set a parameter value like test : 2 and trigger the build. Log ctx.build.params which will be empty

rtudo avatar Oct 21 '22 08:10 rtudo

I'm seeing that as well on Drone 2.12.1. Creating a build ("+ CREATE" button) with parameters (I did click the "add" button) results in no parameters passed if you keep the "branch" field empty. Once you fill it in, the parameters work. I'm checking by running env command in the step.

michael-sayapin avatar Feb 21 '23 09:02 michael-sayapin