Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Commandline: how to pass args/parameters to talend env in script mode

i have written below script for publishing the talend application. I used script mode for publishing/
lunchTalend.bat : this will lunch talend env then execute publish commands
Talend-Studio-win-x86_64.exe -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace scriptFile /temp/publish.bat
publish.bat
initRemote -ul admin -up admin123
listCommand -a 
logonProject -pn PolicyService -ul admin -up admin123
listCommand -a
publishRoute PolicyService_BuildTest --version 0.1 --group Bamboo --artifactId PolicyService_BuildTest --publish-version 0.1.4-SNAPSHOT --snapshot --artifact-repository "" -u admin -p admin123
logoffProject
In the above script, i need to pass URL, version number, login and password details dynamically. Could you please help me how to pass above parameters to talend env.

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi,


Have you tried to pass context parameter from commandline? 


In this way, you can pass values at runtime by modifying the launch script, for example: -


--context_param myString="modified value"


 


Best regards


Sabrina

Anonymous
Not applicable
Author

Talend-Studio-win-x86_64.exe -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace scriptFile D:/5.6.1/studio/temp/publish.bat --context_param login="admin" --context_param pwd="admin123"
I have tried to get the same param in publish.bat but i couldn't.
could you plz let me know how to get context param in below login
initRemote tac URL  -ul {login} -up {pwd}
vharcq
Contributor III
Contributor III

Onofre made it right here:
Using Maven between shell script parameter / environment variables and CommandLine script file
Anonymous
Not applicable
Author

HI,
Thank you for response,
I'm using Talend 5.6 version which doesn't support Maven and other features.

-Madhu