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

Pipeline job offers inapplicable SCM on initial 'Pipeline from SCM' config

    XMLWordPrintable

Details

    Description

      Possibly bug in CpsScmFlowDefinition, or a Stapler issue.

      Install Pipeline and TFS Plugin. Create a Pipeline job. TFVC is offered in the 'Pipeline from SCM' when it shouldn't be, as it's missing the checkout(Job) override (and doesn't override isApplicable(Job)).

      Configure 'Pipeline from SCM: None", Apply, and reload. It will select Git, as it's the only applicable one now (NullSCM isn't either).

      Attachments

        Issue Links

          Activity

            danielbeck Daniel Beck created issue -
            jglick Jesse Glick added a comment -

            CpsScmFlowDefinition.DescriptorImpl.getApplicableDescriptors needs to use StaplerReferer.findItemFromRequest.

            jglick Jesse Glick added a comment - CpsScmFlowDefinition.DescriptorImpl.getApplicableDescriptors needs to use StaplerReferer.findItemFromRequest .
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is duplicated by JENKINS-39219 [ JENKINS-39219 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer added a comment -

            Throwing this on my to-do list - the actual change is trivial, but I need to take the time to write a WebClient test to actually verify it works. And I'm not in the mood at the moment, so I'll do it later. =)

            abayer Andrew Bayer added a comment - Throwing this on my to-do list - the actual change is trivial, but I need to take the time to write a WebClient test to actually verify it works. And I'm not in the mood at the moment, so I'll do it later. =)
            vivek Vivek Pandey made changes -
            Labels stapler stapler triaged-2018-11

            Ran into the same issue, is there a work-around until this is solved? my problem is exactly like the duplicate on this issue.
            This is blocking the build of the job, since it throws a Null Pointer when it tries to find the scm even though I specified it as 'None'

            karanva Karolina Arancibia Valuskova added a comment - - edited Ran into the same issue, is there a work-around until this is solved? my problem is exactly like the duplicate on this issue. This is blocking the build of the job, since it throws a Null Pointer when it tries to find the scm even though I specified it as 'None'
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]

            People

              Unassigned Unassigned
              danielbeck Daniel Beck
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: