Agile Central - Jenkins Connector: '<' not supported between instances of 'JenkinsBuild' and 'JenkinsBuild'
search cancel

Agile Central - Jenkins Connector: '<' not supported between instances of 'JenkinsBuild' and 'JenkinsBuild'

book

Article ID: 117111

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

When the connector is run, an error is shown in the log file and no builds are synchronized to Agile Central:
ERROR: BuildConnectorRunner.run - '<' not supported between instances of 'JenkinsBuild' and 'JenkinsBuild'

Environment

Release:
Component: ACSAAS

Cause

This can be caused by having a Jobs section and a Folder section configured and a job in the Jobs section belongs to a folder in the Folders section.

In this example, the folder Aegon has a pipeline job under it called My-Test-Job:

 

Both are specified in the configuration:

        Folders:
            - Folder: Aegon
              AgileCentral_Project: Jenkins

        Jobs:
            - Job: My-Test-Job
              AgileCentral_Project: Jenkins


This scenario will result in the above error because the Jobs and Folders sections are additive, in that they are intended to created a larger list of builds to synchronize as opposed to the Folder section being considered a constraint for Jobs.

Resolution

The solution is to remove one of the sections so that the jobs are not added to the synchronization list twice.

For example, to only synchronize the Job, comment out the Folders section

#Folders:
# - Folder: Aegon
# AgileCentral_Project: Jenkins

Jobs:
- Job: My-Test-Job
AgileCentral_Project: Jenkins


To synchronize all jobs under a folder, comment out the Jobs section:

Folders:
- Folder: Aegon
AgileCentral_Project: Jenkins

#Jobs:
# - Job: My-Test-Job
# AgileCentral_Project: Jenkins