Get list of job on a project using script

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
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
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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch