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

Jobs are disabled when added within folders via ssh-CLI copy-job folder even if has disabled=false

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cli
    • None

      I have job-templates in folder Templates. Jobs there are enabled.

      After copying that whole folder to the new name, i.e. Project1, jobs are copied too, but inspite of their disabled flag is false (so they are Enabled), they are seen as Disabled. To make it enabled - either enter Configure and Save then, or use CLI disable-job and enable-job again.

      Seems like it needs to check disabled flag during copy folder this job belong to.

          [JENKINS-73704] Jobs are disabled when added within folders via ssh-CLI copy-job folder even if has disabled=false

          Ivan Grushin created issue -
          Ivan Grushin made changes -
          Summary Original: Jobs are disabled when added via ssh-CLI even if has disabled=false New: Jobs are disabled when added within folders via ssh-CLI copy-job folder even if has disabled=false
          Ivan Grushin made changes -
          Description Original: When use ssh CLI for adding projects (with enable-job command), they appear to be disabled even if "<disabled>false</disabled>" set in config.xml .

          After enter Configure, it is showed as Enabled, and Saving it turns it to enabled state.

          Also, when such disabled job is copied via ssh-CLI (with copy-job command), it is showed as Enabled (that is OK).

          Please, fix that behaviour - make enable-job command work without additional actions.
          New: I have job-templates in folder Templates. Jobs there are enabled.

          After copying that whole folder to the new name, i.e. Project1, jobs are copied too, but inspite of their disabled flag is false, they are seen as Disabled. To make it enabled - either enter Configure and Save then, or use CLI disable-job and enable-job again.

          Seems like it needs to check disabled flag during copy folder this job belong to.
          Ivan Grushin made changes -
          Description Original: I have job-templates in folder Templates. Jobs there are enabled.

          After copying that whole folder to the new name, i.e. Project1, jobs are copied too, but inspite of their disabled flag is false, they are seen as Disabled. To make it enabled - either enter Configure and Save then, or use CLI disable-job and enable-job again.

          Seems like it needs to check disabled flag during copy folder this job belong to.
          New: I have job-templates in folder Templates. Jobs there are enabled.

          After copying that whole folder to the new name, i.e. Project1, jobs are copied too, but inspite of their disabled flag is false (so they are Enabled), they are seen as Disabled. To make it enabled - either enter Configure and Save then, or use CLI disable-job and enable-job again.

          Seems like it needs to check disabled flag during copy folder this job belong to.

            Unassigned Unassigned
            mcgru Ivan Grushin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: