Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

Get list of job on a project using script

Highlighted
One Star

Get list of job on a project using script

Hello,
Is there a way to get the list of job names available on a given Talend Enterprise Project using script (SQL for example) ?
We need it to make report and activity tracking.
Can someone help please ?
Thanks in advance
Highlighted
One Star

Re: Get list of job on a project using script

The commandline has a listJob command that may be what you want.  I have used the command line but not to list jobs. 
Here is a link to a tutorial to run a job from the command line that will help you get started using the command line if you are not familiar.
https://www.talendforge.org/tutorials/tutorial.php?idTuto=48
I would guess you would logon to the project and then list the jobs.  here is non-tested commandline script code
initRemote http://${talendhost}:8080/org.talend.administrator -ul admin@company.com -up admin
logonProject -pn ${project_name}
listJob
listProject
Highlighted
One Star

Re: Get list of job on a project using script

The way I achieved this issue was by using the Linux CLI and listing all different jobs located at execution server. Must likely it would be under the path ../TalendJobServersFiles/repository/

In there you would be able to see all projects and job names, separated by an underscore character "_", for example:

 

PROJECT_jobname_{DATE}_jobid

 

Once you have the different jobs and versions, you could filter it using AWK or sending the results to a CSV and analyze it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog