Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Critical
-
Resolution: Unresolved
-
Component/s: git-plugin
-
Labels:
-
Similar Issues:
Description
Git plugin writes no-change if the parameter point to build parameter '${branch_name}' in GitSCM class line: 620:
final EnvVars environment = project instanceof AbstractProject ? GitUtils.getPollEnvironment((AbstractProject) project, workspace, launcher, listener, false) : new EnvVars();
so the 'environment' is empty and won't be resolved.
I have jenkins job of type 'Pipeline'.
I add build parameter '${branch_name}', in the 'Branches to build' I write: '${branch_name}' so now when github send push notification it finally get to the class: 'GitSCM'
in this class when it iterate on the branches it check the type of the Job: 'project instanceof AbstractProject' hence pipeline does not instance of that it get empty ENV so it does not resolve the parameter and use it as is and failed to match the branch.