-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Docker LTS - Blue Ocean 1.10.1
When I was trying to save Bitbucket pipeline I get the following error show below
The problem appears to be that when an error is returned from Bitbucket it is not in the expected format.
I manually called the API using postman to try and determine the problem. The message returned was:
{
"errors": [
]
}
ERROR:
Jan 24, 2019 1:11:46 PM io.jenkins.blueocean.blueocean_bitbucket_pipeline.HttpResponse getContent
SEVERE: An error occurred getting BitBucket API error content
net.sf.json.JSONException: JSONObject["details"] is not a JSONArray.
at net.sf.json.JSONObject.getJSONArray(JSONObject.java:1986)
at io.jenkins.blueocean.blueocean_bitbucket_pipeline.HttpResponse.getContent(HttpResponse.java:56)
at io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.BitbucketServerApi.saveContent(BitbucketServerApi.java:221)
at io.jenkins.blueocean.blueocean_bitbucket_pipeline.AbstractBitbucketScmContentProvider.saveContent(AbstractBitbucketScmContentProvider.java:125)
at io.jenkins.blueocean.rest.impl.pipeline.ScmResourceImpl.saveContent(ScmResourceImpl.java:52)