Parser error reporting in jenkins-jobs is dismal

Bug #1259632 reported by Kevin L. Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
New
Undecided
Unassigned

Bug Description

jenkins-jobs could use much better error reporting. I had set up a job template, and was trying to use a project to realize it. I had given the project a list of names. All I got from jenkins-jobs for processing this was an obscure exception about a list not being hashable; it took a significant amount of effort to isolate the root cause of the problem to the project's name.

Tags: jjb
Revision history for this message
Mathieu Gagné (mgagne) wrote :

Can you provide an example of the problematic config? Thanks!

tags: added: jjb
Revision history for this message
Kevin L. Mitchell (klmitch) wrote :

This was more of a general complaint. Basically, the parsing problem I specifically noticed was with a construct such as this:

    - job-template:
        name: 'foo-{name}-bar'

    - project:
        name:
          - 'proj1'
          - 'proj2'
          - 'proj3'
        jobs:
          - 'foo-{name}-bar'

Revision history for this message
James E. Blair (corvus) wrote :

Yes, I'd really like to see a YAML validator like voluptuous in JJB.

Revision history for this message
James E. Blair (corvus) wrote :

Marking as a dupe since it's very similar to the other bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.