I am using a omni job in jenkins which is a parameterized job which is used to either to following of 3 things.
1. Only build the artifacts
2. Build and deploy to a containter
3. Build and copy to a location
I am using Flexible Publish plugin to control the decision based on the build paramters. When doing this I am passing TARGET_SERVER i.e. server where to deploy the application as a paramter but the deploy to containter plugin does not seem to work when I am using this build paramter in the TOMCAT URL...
Please find this link for stackoverflow where I have asked this question.
Attaching the job screen shot to show you how I Have setup the job