Noticed when executing the git branch command it was switching back to the old branch during the build
Found the config.xml for the build - modified it to point the branches and localbranch parameters to the required branch. Ran it again - still no changes.
Found that you had to from the browser tell jenkins / hudson to reload its configuration from disk using the following
where [command] can be
- exit shutdown jenkins
- restart restart jenkins
- reload to reload the configuration
Noticed that during build when running git branch command that the git was now pointing to the correct branch.
Probably the way I created this job / branch in the first place.
Anyway - notes for the future - when I invariably do this again...