Weblogic provide script tool to create userConfigFile and userConfigKey, that encrypt the current user login and password, can be used by auto_deploy tools.
1. Set domain variable:
cd ${DOMAIN_HOME}/bin
source setDomainEnv.sh
2. Invoke WLST:
java weblogic.WLST
3. Generate user config and user key
connect(<admin_username>,<admin_password>,<admin_url>)
eg.
exit()
6. connect to weblogic using configuration file and key file
connect(userConfigFile='localConfigFile',userKeyFile='localUserKey')
7. Set weblogic.userConfigFile and weblogic.userKeyFile properties in build.properties based on your settings
#Location of stored weblogic user config file.
weblogic.userConfigFile=localConfigFile
#Location of stored weblogic user key file.
weblogic.userKeyFile=localUserKey
8. Put the config file and user key as parameters. then it will use the current user login and password.