Closed JasonDictos closed 4 years ago
I started poking around the job files, and I did see the envs in the xml file. And it does actually do the right thing if I let it trigger itself. It will not figure out the targetBranch or sourceBranch however if I run it manually (as it has no input params I suppose). I recall reading in the instructions that it should be run at least once manually to 'kick it off', but I guess I'm a little confused on that part.
Either way this does work for now.
I think the issue is that a MANUAL job will never work, since it doesn't have those environment variables. Only pull-request triggered jobs work.
Jenkins Version: 2.204.1 Bitbucket Pullrequest Builder Plugin Version: 1.5.0 Git Plugin Version: 4.0.0
Job type: Pipeline with Jenkins file in source code
Problem: When configuring the SCM git hook, the Branches to build field does not pickup ${sourceBranch} env variable. Nor does the merge branch option pickup the ${targetBranch} variable.
Logs: