Reputation: 15
I have installed cloudfoundry plugin for Jenkins. In the Jenkins job i provided all the details and when i click on test connection it fails with below error.can someone help me please?
java.lang.RuntimeException: Error getting /info from Cloud Controller
at org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.getInfoMap(CloudControllerClientFactory.java:106)
Caused by:org.cloudfoundry.client.lib.org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@18601e6; line: 1, column: 2]
Upvotes: 0
Views: 873
Reputation: 3242
You are probably getting back an HTML page, instead of a JSON file. Since the first character parsed is a <
character.
You may have configured a wrong cloudcontroller API endpoint within your Jenkins installation. For pcfdev it should be api.local.pcfdev.io
.
Upvotes: 1
Reputation: 631
The error message refers to the likely configuration syntax error:
Unexpected character ('<' (code 60))
Validate your manifest.yml using any online validator (like http://www.yamllint.com/)
You can also verify your access/credentials by logging into your Jenkins Organisation/Workspace (as set on the plugin configuration page) using
cf login -o YourJenkinsOrg -s YourJenkinsSpace
and then running
cf curl "v2/info"
Upvotes: 0