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

Jobs inside nested folders need to be activated after copying the top level folder

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Windows
      Jenkins 2.19.4
      Folders Plugin: 5.14

      After copying a folder with a nested structure, like

      top1/
      level1/
      job1
      job2

      to a new folder top2 via "New Item", the jobs cannot be started (there's no "Build now") unless their configuration page was opened and saved once.

      This doesn't happen when the jobs are located at the top level, as in

      top1/
      job1
      job2

          [JENKINS-40436] Jobs inside nested folders need to be activated after copying the top level folder

          It also happens to me in the second scenario: copying when the jobs are located at the top level.

          Jenkins 2.32.1
          Folder plugin 5.16

          Evaristo Gutierrez added a comment - It also happens to me in the second scenario: copying when the jobs are located at the top level. Jenkins 2.32.1 Folder plugin 5.16

          I've meanwhile learned that this is on purpose and works as designed. However, one can easily enable the jobs from the Jenkins script console with the following snippet:

          Jenkins.instance.getItemByFullName('New_Folder').allJobs.each {
              it.save()
          }

          Dirk Heinrichs added a comment - I've meanwhile learned that this is on purpose and works as designed. However, one can easily enable the jobs from the Jenkins script console with the following snippet: Jenkins.instance.getItemByFullName( 'New_Folder' ).allJobs.each { it.save() }

            Unassigned Unassigned
            dhs Dirk Heinrichs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: