Use multiply "job-context-param" in commandline executeJobOnServer

Highlighted
One Star

Use multiply "job-context-param" in commandline executeJobOnServer

Hello,
I deploy and launch a job to an Server with the commandline. I success to pass one context but not several.
My command with one context :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv

My command with two contexts :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp "name=file_test.csv new1=pm"
When I have several contexts I have this error : "Unexpected new1=pm while processing"
What is the good syntax for doing that ??

Thank you,
Carole
One Star

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Carole
The command should be like this.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv new1=pm
There is no double quotation.
Regards,
Pedro
One Star

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Pedro,
It doesn't work with this syntax. I have the same error :
"Unexpected new1=pm while processing"
(I've changed the name of my second context variable. new1 become suffix)

Best Regards,
Carole
One Star

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Carole
Try this please. I'm sure it will work fine.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv -jcp new1=pm
Regards,
Pedro
One Star

Re: Use multiply "job-context-param" in commandline executeJobOnServer

:-S it doesn't work yet.
I have this error :
Unexpected value "suffix=pm" found while processing -jcp
That's strange, I don't find any example of the same case in Talend documentation...
Do you think it's a bug ?

Thank you for your help,
Carole

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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads