Closed akamalov closed 6 years ago
Answering my own question. If you're in a proxied environment like me, you need to add proxy information to your mvn clean package
File: https://github.com/mblakeashley/spring-hello-world/blob/master/ci/tasks/maven-build:
mvn clean package -DproxySet=true -DproxyHost=[PROXY_HOST] -DproxyPort=[PROXY_PORT] -DnonProxyHosts=127.0.0.1
Also, if you're deploying it against your local PCF, your unit-tests
will fail due to a hardcoded domain information. Update the task file to reflect your domain name and it will go through.
@akamalov Thanks for sharing your findings in regards to the proxy settings.
As for the hardcoding of hostname/url that is on purpose to simulate a ready to go blue-green deployment. This project is intended for a blog post I wrote some time back, I'll update the readme to reflect this. Cheers!
https://www.levvel.io/our-ideas/CI-CD-Going-Stateless-with-Pivotal-Cloud-Foundry
By the way @mblakeashley, awesome blog. Loved it!!
@akamalov Awesome, glad you enjoyed it!
Greetings,
Tried to deploy it but got an error in a pipeline. Don't know if it is related to the fact that environment is behind proxy?
Thanks again!!