I am attempting to build an EAR file and then automatically deploy it into BlueMix... but I am getting an "incorrect usage" error. I have tried various flavors of command when defining the "BlueMix script" attribute on the deployer, as follows:
The logs for the deployment phase simply state:
FAILED Incorrect Usage.
This does not provide enough information to let me know what is wrong with the cf push command.
The logs come to us from running the cf commands, so that's really all the output we can give to the user. Can you run the commands locally?
Hmmm... so it appears that the problem is that the ${CF_APP} variable is not being expanded. When I modify the command to:
cf push TestJazzApplication
the deployment works fine. Does anyone know why this variable is not being expanded?
CF_APP value is taken from the manifest.yml file. Can you check if you defined a value in the manifest file for all variables.
Answer by Chris Jenkins (1590) | May 13, 2014 at 10:57 AM
The reason that the ${CF_APP} does not work is that you need to make sure that you populate it.
The BlueMix app name field gets uses when there is no manifest.yml file. It is also what populates the CF_APP variable in the script. Clicking the help icon (marked in red) add the description that you can see. If your app name is BlueMixTest and you input that in the app name field, the script should run as:
cf push BlueMixTest
That works... many thanks.
I can't help thinking that some additional information could be provided to the end user to help them diagnose the problem and rectify it.
Not able to deploy to bluemix from dev ops 3 Answers
Deployment failure: "jq: error: Cannot iterate over null" 2 Answers
Promoting code between spaces 1 Answer
Not able push latest changes written in Node.js to Bluemix platform from DevOps 1 Answer
Unable to create a new Bluemix deployable project on IBM DevOps services 2 Answers