Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Stephen_Elves1
Contributor
Contributor

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)
Labels (3)
1 Reply
Stephen_Elves1
Contributor
Contributor
Author

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/