Export Talend items from talend studio put on SVN and build it from Jenkins

我的未来我决定 提交于 2019-12-21 02:47:15

问题


Hi I am using talend open studio 5.5. I want to export talend job and put into the SVN. It contains the following files. 1) process a) .items b) .properties

I want to build talend job from this and create jar, bat and sh files as created when build job in talend open studion.


回答1:


This part of a series explains how to use the Talend command line tool to build jobs from outside of the studio. It's scriptable so can be access from an external tool and in this case Jean-Baptiste uses Maven as a build tool.

His example commandline-script.sh inits the Talend repository, logs on as a user and then publishes an ESB route:

initRemote ${tac.location}
logonProject -pn ${talend.project} -ul "${tac.user}" -up ${tac.password}
publishRoute ${project.artifactId} -r "${repo.snapshot}" -u ${repo.user} -p ${repo.password} -pv ${project.version} -g ${project.groupId} -a ${project.artifactId}

He then uses a Maven POM to call this commandline script.

Typically you'd use Jenkins to build a Maven or Ant project as part of a continuous integration setup so these steps should be pretty easy for you to follow if you're using Maven as your build tool but the main premise is using the command line tool to build Talend jobs from an external script/application.

Jean-Baptiste is a Talend employee who specialises in ESB so this tutorial is aimed at ESB but, once again, the main point is that you can use the command line tool to externally build Talend job.

The official approach to this would of course be to buy an Enterprise licence that comes with a Talend Administration Centre. From here you can build jobs (it's providing a GUI hook into the command line to do so), deploy to any job execution server and execute on a combination of CRON, time based (eg. every 42 seconds for 10 iterations) or file based triggers.

The Enterprise licences also include an integrated SVN repository designed to better fit the vagaries of Talend projects.



来源:https://stackoverflow.com/questions/26883525/export-talend-items-from-talend-studio-put-on-svn-and-build-it-from-jenkins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!