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

Create New item copied from github org branch job should not be allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: branch-api-plugin, core
    • Labels:
    • Environment:
      Jenkins v2.0
      GitHub Organization Folder Plugin v1.3
      GitHub Branch Source Plugin v1.6
      Pipeline: Multibranch v2.3
      Pipeline: Job v2.1
    • Similar Issues:

      Description

      Actions taken:
      When creating a new item, if one creates that job as a copy of an existing branch, the resulting job is not editable or deletable. There is no way that I can see to edit or delete the newly created job.

      Use Case:
      The reason one might want to do this is to turn a given branch build into a recurring task. What I thought was the obvious solution was to create a new item coped from the existing one, with the intention of adding in a schedule trigger.

      Expectation:
      Ideally, this would just work, but as a stop-gap it should probably have been prevented from happening in the first place by filtering out such immutable/generated jobs as copy-from candidates.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/jenkins/branch/MultiBranchProject.java
          http://jenkins-ci.org/commit/branch-api-plugin/7b2dafd1dcaa556fc6db14a7c23244df4dcbbbf1
          Log:
          JENKINS-34691 Noting core version

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/jenkins/branch/MultiBranchProject.java http://jenkins-ci.org/commit/branch-api-plugin/7b2dafd1dcaa556fc6db14a7c23244df4dcbbbf1 Log: JENKINS-34691 Noting core version
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/jenkins/branch/MultiBranchProject.java
          src/main/resources/jenkins/branch/Messages.properties
          http://jenkins-ci.org/commit/branch-api-plugin/f4ffb3e2aa9464c4ce1cbfce455de94ba8d9e2a4
          Log:
          Merge pull request #95 from stephenc/jenkins-34691

          JENKINS-34691 Adopt proposed veto mechanism

          Compare: https://github.com/jenkinsci/branch-api-plugin/compare/d7f50ea7911a...f4ffb3e2aa94

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/jenkins/branch/MultiBranchProject.java src/main/resources/jenkins/branch/Messages.properties http://jenkins-ci.org/commit/branch-api-plugin/f4ffb3e2aa9464c4ce1cbfce455de94ba8d9e2a4 Log: Merge pull request #95 from stephenc/jenkins-34691 JENKINS-34691 Adopt proposed veto mechanism Compare: https://github.com/jenkinsci/branch-api-plugin/compare/d7f50ea7911a...f4ffb3e2aa94
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          content/_data/changelogs/weekly.yml
          http://jenkins-ci.org/commit/jenkins.io/66b017017e91f7fff27a423f2d7ea10088465585
          Log:
          Noting merge of JENKINS-34691

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: content/_data/changelogs/weekly.yml http://jenkins-ci.org/commit/jenkins.io/66b017017e91f7fff27a423f2d7ea10088465585 Log: Noting merge of JENKINS-34691
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: R. Tyler Croy
          Path:
          content/_data/changelogs/weekly.yml
          http://jenkins-ci.org/commit/jenkins.io/91d352197897e24941b25ef4a20e0728da8b1e22
          Log:
          Merge pull request #755 from stephenc/patch-4

          Noting merge of JENKINS-34691

          Compare: https://github.com/jenkins-infra/jenkins.io/compare/525a918e2646...91d352197897

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: R. Tyler Croy Path: content/_data/changelogs/weekly.yml http://jenkins-ci.org/commit/jenkins.io/91d352197897e24941b25ef4a20e0728da8b1e22 Log: Merge pull request #755 from stephenc/patch-4 Noting merge of JENKINS-34691 Compare: https://github.com/jenkins-infra/jenkins.io/compare/525a918e2646...91d352197897
          Hide
          jglick Jesse Glick added a comment -

          Should this not be Fixed now?

          BTW you forgot to update the @since.

          Show
          jglick Jesse Glick added a comment - Should this not be Fixed now? BTW you forgot to update the @since .

            People

            • Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              rmgraham Ryan Graham
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: