Thanks to some debugging and a close eye of a colleague of mine , we do believe the issue resides on a wrongly passed variable.
Here is what the code does on line 106 :
String expandedScmBranch = envVars.expand(scmBranch); |
|
Now, let's see what is actually passed to Tower :
this.myJob.setJobId(myTowerConnection.submitTemplate(template.getInt("id"), expandedExtraVars, expandedLimit, expandedJobTags, expandedSkipJobTags, jobType, expandedInventory, expandedCredential, scmBranch, templateType)); |
|
It should be expandedScmBranch instead of scmBranch.
Hopefully will find time next week to recompile (for a first time) a plugin and give it a try.
codizz, if you found a different solution - do not hesitate to share it.
We faced same issue with old and new version and to be even more interesting fields like fields like - Job-tags and skip-tags are reporting the variable fine.
Seems that only one, which give the string is SCM_BRANCH.