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

Declarative Directive Generator is a 404 in multibranch Pipeline

    Details

    • Similar Issues:

      Description

      Clicking "Pipeline Syntax" in the sidebar and then "Declarative Directive Generator" works for a Pipeline, but not for a Multibranch Pipeline.  In the latter case, a 404 page is shown.

      This seems to happen in all cases, regardless of whether the jobs are defined at the top-level, or within a folder, e.g.:

      Fine:
      - /job/pipeline/directive-generator/
      - /job/folder/job/pipeline/directive-generator/

      404:
      - /job/mb-pipeline/directive-generator/
      - /job/folder/job/mb-pipeline/directive-generator/

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Pretty sure I can fix this tomorrow.

            Show
            abayer Andrew Bayer added a comment - Pretty sure I can fix this tomorrow.
            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/267
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/generator/DirectiveGenerator.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ee78d7a821dffd82a42647cdbb2e379be8dfab92
            Log:
            [FIXED JENKINS-50882] Make generator work on multibranch and org folders

            Sigh - I didn't realize that Snippetizer actually had to do the same
            thing in three places (well, more accurately, two of those are in
            workflow-multibranch but are otherwise identical to what's in
            Snippetizer). So here are `TransientActionFactory`s added for
            `OrganizationFolder` and `WorkflowMultiBranchProject` (aka multibranch
            folder), and a refinement of the `WorkflowJob` one too.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/generator/DirectiveGenerator.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ee78d7a821dffd82a42647cdbb2e379be8dfab92 Log: [FIXED JENKINS-50882] Make generator work on multibranch and org folders Sigh - I didn't realize that Snippetizer actually had to do the same thing in three places (well, more accurately, two of those are in workflow-multibranch but are otherwise identical to what's in Snippetizer). So here are `TransientActionFactory`s added for `OrganizationFolder` and `WorkflowMultiBranchProject` (aka multibranch folder), and a refinement of the `WorkflowJob` one too.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                orrc Christopher Orr
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: