Follow the general WAR or JAR package creation standard to create a WAR or JAR package. Deploying an application will inject some built-in environment variables in the container or cloud host where the application resides for automated deployment. Therefore, you must avoid using these environment variables when you develop an application. The following are the built-in environment variables:
WAR package related built-in environment variables:
TOMCAT_URL—Address for downloading a Tomcat package (deployed on a cloud host).
PKG_URL—Address for downloading a WAR package (deployed on a cloud host).
CONF_URL—Address for downloading a server.xml configuration file (deployed on a cloud host).
RELEASE_ID—Application ID (deployed on a cloud host).
PARM_LIST—Keys of all environment variables, separated by colons (;) (deployed on a cloud host).
JAR_PARM—JVM parameter (deployed on a cloud host or container).
JAR package related built-in environment variables:
JDK_URL—Address for downloading a JDK package (deployed on a cloud host).
PKG_URL—Address for downloading a JAR package (deployed on a cloud host).
PARM_LIST—Keys of all environment variables, separated by colons (;) (deployed on a cloud host).
JAR_PARM—JVM parameter (deployed on a cloud host or container).
JAR_NAME—Name of the JAR package (deployed on a container).