Hi. I have created a process to deploy a war file into a WAS Server. I ask before if the app is isnstalled using the "WebSphere Application Server - Deployment -> Check Application is Installed" plugin.
This plugin has properties to include the user and password you want to use in the connection but in my case I want to use environment properties. This is not possible for password so user and pass has to be included as Additional Command Line Arguments
Doing this, the command has the parameters but they are not used and the process ask for the username and password again. Here you can find what is the command that the step is using. You can see that -user and -password are included
********************************************
Running Check to see if jython was upgraded
/opt/ibm/WebSphere/wp_profile/bin/wsadmin.sh -h jython
Run Script : /opt/ibm/WebSphere/wp_profile/bin/wsadmin.sh -lang jython -conntype SOAP -host portal85.ibm.local -port 10033 -usejython21 true **-user wpsadmin -password wpsadmin** -f /opt/ibm-ucd/agent/var/work/JPetStore-APP/temp7693261801658980528.py
WASX7209I: Connected to process "WebSphere_Portal" on node localhostNode using SOAP connector; The type of process is: UnManagedProcess
Checking for application JPetStore
Application is not currently installed!
Could you help me?
Thanks in advance.
Answer by portega47 (100) | Jan 17 at 07:46 AM
Hi.
I have found what was wrong. Additional command line arguments cannot be used with WebSphere Application Server - Deployment plugins for those properties that has to be included as properties. If you do that the python file overwrite the values included.
Besides that, I was doing this due to the idea you cannot use scoped properties for password field. That is not right so it is not necessary this approach.