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

Unable to create Jobs using job DSL in pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, job-dsl-plugin
    • None
    • CloudBees Jenkins Enterprise 2.7
      Job DSl v 1.51
      Pipeline v 2.4
      Github Organization Folder v 1.4

      I am running a pipeline job using Git Hub Organization folder plugin that scans a github organization and creates/runs jobs for all the repos that have Jenkinsfile in it. I have defined common pipeline scripts in a central git repo which is loaded by the Jenkinsfile and run.

      In my common pipeline script I am also creating/updating a Maven job for every master branch in the repo. I am doing this using Process Job DSL step from pipeline API. I am calling a groovy script that does this.

      It works fine for some time and at some point I am no longer able to create or update the new Maven jobs in my pipeline. There are no errors reported in build logs but the jobs do not get created. After this happens Job DSL sort of completely stops working for me. I cannot even create a simple test job using DSL. In the Jenkins system logs I see the below error messages. Can you please investigate this? This is blocking me from going live to production with my pipeline scripts.

            daspilker Daniel Spilker
            harsha924 Harsha B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: