Agile Central - Jenkins Connector: Unable to create a BuildDefinition

Document ID : KB000118750
Last Modified Date : 31/10/2018
Show Technical Document Details
Issue:
Running the Jenkins connector while using an Agile Central API key causes the following error to be entered in the log file and no job status is updated within Agile Central.
[2018-10-29 13:43:22 Z] DEBUG: AgileCentralConnection.ensureBuildDefinitionExists - Detected build definition cache for the project: Sample Project is empty, populating ... 
[2018-10-29 13:43:22 Z] DEBUG: AgileCentralConnection.ensureBuildDefinitionExists - Creating a BuildDefinition for 'my.jenkins.server:8080/job/test_project' in Project 'Sample Project' ... 
[2018-10-29 13:43:22 Z] ERROR: AgileCentralConnection.ensureBuildDefinitionExists - Unable to create a BuildDefinition for: 'my.jenkins.server:8080/job/test_project'; Response for request: builddefinition/create?key=None&workspace=workspace/99999999999&project=project/99999999999 either was not JSON content or was an invalidly formed/incomplete JSON structure 
[2018-10-29 13:43:22 Z] ERROR: AgileCentralConnection.ensureBuildDefinitionExists(535) - <OperationalError> Unable to create a BuildDefinition for: 'my.jenkins.server:8080/job/test_project'; Response for request: builddefinition/create?key=None&workspace=workspace/99999999999&project=project/99999999999 either was not JSON content or was an invalidly formed/incomplete JSON structure 
[2018-10-29 13:43:22 Z] ERROR: BLDConnector.reflectBuildsInAgileCentral - OperationalException prepACBuildPrerequisites - Unable to create a BuildDefinition for: 'my.jenkins.server:8080/job/test_project'; Response for request: builddefinition/create?key=None&workspace=workspace/99999999999&project=project/99999999999 either was not JSON content or was an invalidly formed/incomplete JSON structure
Cause:
The cause of this error is an invalid API key.  When the API key is created it can be created with read only and full access.  This can cause conflicts in how the key is read.
User-added image
Resolution:
Resolution is to generate a new API key with only full-access.

Follow this article for details on generating a new API key:
How to create an API key for Agile Central