I am trying to push a docker registry image to CloudFoundry using the Cloud Foundry Plugin. I have added registry url and username in manifest.yml file and providing the password in the environment variable as mentioned in cf docs. The application fails in the staging step.
java.lang.IllegalStateException: Application SpringDemo-3 failed during staging
It actually doesn't consider it as a docker deployment. Rather it considers it as a normal application deployment and searches for the buildpack.
Are there any sample pipelines where a docker image is being pushed to CloudFoundry?
- Attached the Jenkinsfile (with few values changed for security reasons) and error logs.
- Jenkins has been installed as a PCF tile.