The Build Job feature allows you to deploy and execute a Job on any server, independent of Talend Studio.
About this task
By executing build scripts generated from the templates defined in Project Settings, the Build Job feature adds all of the files required to execute the Job to an archive, including the .bat and .sh along with any context-parameter files or other related files.
By default, when a Job is built, all the required jars are included in the .bat or .sh command. For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems. To avoid failure of running the batch command due to this limitation, before building your Job, go to Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job.and then select the
In the Repository tree
view, right-click the Job you want to build, and select Build Job to open the Build Job dialog box.
Note: You can show/hide a tree view of all created Jobs in Talend Studio directly from the Build Job dialog box by clicking the and the buttons respectively. The Jobs you earlier selected in the Studio tree view display with selected check boxes. This accessibility helps to modify the selected items to be exported directly from the dialog box without having to close it and go back to the Repository tree view in Talend Studio to do that.
- In the To archive file field, browse to the directory where you want to save your built Job.
- From the Select the Job version area, select the version number of the Job you want to build if you have created more than one version of the Job.
Select the Build Type
from the list:
If the data service Job includes the tRESTClient or tESBConsumer component, and none of the Service Registry, Service Locator or Service Activity Monitor is enabled in the component, the data service Job can be built as OSGI Bundle For ESB or Standalone Job. With the Service Registry, Service Locator or Service Activity Monitor enabled, the data service Job including the tRESTClient or tESBConsumer component can only be built as OSGI Bundle For ESB.
- Standalone Job
- OSGI Bundle For ESB
- Select the Extract the zip file check box if you want the archive file to be automatically extracted in the target directory.
In the Options area,
file type(s) you want to add to the archive file. The check boxes corresponding
to the file types necessary for the execution of the Job are selected by
default. You can clear these check boxes depending on what you want to
Select this check box to export the .bat and/or .sh files necessary to launch the built Job.
All: exports the .bat and .sh files.
Unix exports the .sh file.
Windows exports the .bat file.
Context scriptsSelect this check box to export ALL context parameters files and not just those you select in the corresponding list.Note: To export only one context, select the context that fits your needs from the Context scripts list, including the .bat or .sh files holding the appropriate context parameters. Then you can, if you wish, edit the .bat and .sh files to manually modify the context type. Apply to children Select this check box if you want to apply the context selected from the list to all child Jobs. ItemsSelect this check box to export the sources used by the Job during its execution including the .item and .properties files, Java and Talend sources.Note: If you select the Items or Source files check box, you can reuse the built Job in a Talend Studio installed on another machine. These source files are only used in Talend Studio.
Select this check box to export the .java file holding Java classes generated by the Job when designing it.
Click the Override parameters'
values button, if necessary.
In the window which opens you can update, add or remove context parameters and values of the Job context you selected in the list.
- Click Finish to validate your changes, complete the build operation and close the dialog box.
A zipped file for the Jobs is created in the defined place.