Four Stars

CommandLine & Filter

Hi,

when i specify itemFilter condition for build job with commandline. It's works but only for Jobs in SubLevel1 in the Job Repository

 

Ex in Studio

Jobs

 / Standard Job

    /Dir1

       MyJob

   /Dir2

     /Dir3

        MyJob 2

/Joblet

 

If i use a filter wich match with MyJob & MyJob 2 (with status=TEST for exemple), only My Job is return and not MyJob2.

 

Any idea ?

  • Data Integration
  • Talend Commandline
4 REPLIES
Four Stars

Re: CommandLine & Filter

Troubles seems to be somewhereelse, few jobs was'nt build for other reason.

Community Manager

Re: CommandLine & Filter

Hello
Refer to Talend Commandline API, the command buildJob does not support -if (item filter) parameter, you must specify the Job name.
https://help.talend.com/reader/cyev8vBJuMZYmkHiFM~dSA/08ntB56F55MAlwDC7a0b5g

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Four Stars

Re: CommandLine & Filter

Tks Shong,

it's not exaclty the build function but the buildProjectSources function. It's for CI with Jenkins and few jobs don't have the pom.JOM.xml in RunTests directory and they should mach with item filter expression

Stranger, if I duplicate a job which shoud match, after run a new jenkins build, the copy is build.
Five Stars

Re: CommandLine & Filter

You should do 

label%MyJob*

What are you using ?