Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55261

Errors visible in UI are hidden if you use job-dsl


    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • job-dsl-plugin
    • None

      If you try to enter a cron expression in the Web UI like H/2 * * * * * you will get an error.

      If you use job-dsl construct like

       { scm 'H/2 * * * *' } 

      the job will be created without any issues. The incorrect values will be there in the config.xml, but if you open the Web UI you will not see the trigger at all. There is nothing to be seen in jenkins log. This won't be flagged in the Manage Old Data monitor either.

      Best solution would be too tighten validation for the executed job-dsl to not allow such values. If that's not possible it would be nice to at least be able to see a notification about the error somewhere.

            daspilker Daniel Spilker
            jbochenski Jakub Bochenski
            0 Vote for this issue
            1 Start watching this issue