[JIRA] (JENKINS-50882) Declarative Directive Generator is a 404 in multibranch Pipeline

1 view
Skip to first unread message

chris@orr.me.uk (JIRA)

unread,
Apr 18, 2018, 5:31:04 PM4/18/18
to jenkinsc...@googlegroups.com
Christopher Orr created an issue
 
Jenkins / Bug JENKINS-50882
Declarative Directive Generator is a 404 in multibranch Pipeline
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2018-04-18 21:30
Environment: Jenkins 2.107.2
Declarative: 1.2.9
Priority: Minor Minor
Reporter: Christopher Orr

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/

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Apr 18, 2018, 5:35:02 PM4/18/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Apr 19, 2018, 2:42:02 PM4/19/18
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-50882
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Apr 19, 2018, 2:43:02 PM4/19/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Apr 19, 2018, 2:43:02 PM4/19/18
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Apr 24, 2018, 11:19:02 AM4/24/18
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-50882
 
Re: Declarative Directive Generator is a 404 in multibranch Pipeline

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.

andrew.bayer@gmail.com (JIRA)

unread,
Apr 24, 2018, 11:20:02 AM4/24/18
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:40 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages