MetaServlet failing to Associate Pre Generated Job from a branch

One Star

MetaServlet failing to Associate Pre Generated Job from a branch

I used Command Line to build a job from a branch (test3).
I can use the web application to associate the zip file to create a new task.
If i try and use MetaServlet (on the same server) I get an error:
{"error":"Can't find project FireWatch's branch with name 'test3'.","returnCode":5}
Command run:
/opt/Talend-5.4.1/tac/apache-tomcat/webapps/org.talend.administrator/WEB-INF/classes/MetaServletCaller.sh -url=http://10.14.200.109:8080/org.talend.administrator '-json={
"actionName": "associatePreGeneratedJob",
"active": true,
"authPass": "xxxxxx",
"authUser": "xxx@xxx",
"description": "jobMasterSourcetoDSA",
"executionServerName": "Virt_Jobserver",
"filePath": "/usr/local/jenkins/workspace/BranchTestSVN_export/jobMasterSourcetoDSA.zip",
"onUnknownStateJob": "WAIT",
"taskName": "jobMasterSourcetoDSA"
}'

I also tried associating it in a seperate TAC instance running with a different SVN repo which did not have a test3 branch (but did have the same project) via the web front end this worked fine.
1.The branch DOES exist in the same repository refered to by MetaServlet.
2. I would expect you not to NEED to have a branch of the same name at the destination. (this works via the web front end but not via MetaServlet)
One Star

Re: MetaServlet failing to Associate Pre Generated Job from a branch

CommandLine script to buildjob:
initRemote http://10.14.200.109:8080/org.talend.administrator -ul xxx@xxx -up xxxxxx
logonProject -pn FIREWATCH -br test3
buildJob jobMasterSourcetoDSA -dd /usr/local/jenkins/workspace/BranchTestSVN_export/