Cloud Foundry Plugin: Unknown host

31 views
Skip to first unread message

Mark Heckler

unread,
Nov 18, 2015, 4:19:35 PM11/18/15
to Jenkins Users
Esteemed colleagues,

I'm running a Jenkins Docker container built upon the jenkinsci/jenkins image (https://hub.docker.com/r/hecklerm/jenkins/), and have connected it to Gitlab and Maven, and builds are working fine. After adding the Cloud Foundry plugin, I run into some difficulties.

I've attached a capture of the relevant section of the build config screen. I've tried two different Cloud Foundry targets - both externally-facing - and regardless of target specified, I get "Unknown host" when I test the connection. The docs assume once you plug in a value, it just works, so troubleshooting information is a bit sparse. :)

When I plug the same URI into a browser, I get a JSON response:

{
  "code": 10000,
  "description": "Unknown request",
  "error_code": "CF-NotFound"
}

This would seem to indicate I may be using an incorrect endpoint, but I'm plugging in what the command line call "cf api" (from another machine) returns, which would indicate I'm not.

I don't have the Cloud Foundry CLI installed on/in my Jenkins container. Is this required? Recommended? If not, any other thoughts on why the CF plugin can't seem to find my cloud?  :)

Thank you for any suggestions or guidance you can offer!

Cheers,
Mark

JenkinsCFPluginIssues.tiff

Mark Heckler

unread,
Nov 19, 2015, 3:47:16 PM11/19/15
to Jenkins Users
Resolved.
Reply all
Reply to author
Forward
0 new messages