I have seen these sort of problem before in this tables-to-divs work. It was related to the ability of hudson-behaviour to build a proper tree. Maybe we need to look into it.
Félix Queiruga Balado
added a comment - - edited I have seen these sort of problem before in this tables-to-divs work. It was related to the ability of hudson-behaviour to build a proper tree. Maybe we need to look into it.
and when run from hpi:run in branch-api it works but not elsewhere
Tim Jacomb
added a comment - seems to be because the div name="source is missing.
it's here:
https://github.com/jenkinsci/branch-api-plugin/blob/e69c48a1a01c210a4703fed975ca234d85743cdb/src/main/resources/jenkins/branch/BranchSource/config.jelly#L26
and when run from hpi:run in branch-api it works but not elsewhere
Barel Elbaz
added a comment - - edited A workaround that's worth a mention here, If you face with it and you need to set Branch Source urgently you can:
Login to Jenkins via ssh
Modify ```JENKINS_HOME/jobs/<job_name>/config.xml``` - Just copy & modify from different job with working & configured branch source
Sample config:
```
<sources class="jenkins.branch.MultiBranchProject$BranchSourceList">
<data>
<jenkins.branch.BranchSource>
<source class="jenkins.plugins.git.GitSCMSource">
<id>1100</id>
<remote> <---YOUR REPO GOES HERE Ex: https://github.com/--- > </remote>
<credentialsId> YOUR_CREDENTIALS </credentialsId>
<includes>*</includes>
<excludes/>
<ignoreOnPushNotifications>false</ignoreOnPushNotifications>
</source>
<strategy class="jenkins.branch.DefaultBranchPropertyStrategy">
<properties class="empty-list"/>
</strategy>
</jenkins.branch.BranchSource>
</data>
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
</sources>
```
reinholdfuereder I created https://issues.jenkins-ci.org/browse/JENKINS-64136