[JIRA] (JENKINS-60911) email-ext-plugin not loading files through config-file-provider-plugin when defined at folder level

10 views
Skip to first unread message

guillaume.cernier@amadeus.com (JIRA)

unread,
Jan 29, 2020, 4:43:03 PM1/29/20
to jenkinsc...@googlegroups.com
Guillaume CERNIER created an issue
 
Jenkins / Bug JENKINS-60911
email-ext-plugin not loading files through config-file-provider-plugin when defined at folder level
Issue Type: Bug Bug
Assignee: Francisco Fernández
Components: cloudbees-folder-plugin, config-file-provider-plugin, email-ext-plugin, emailext-template-plugin
Created: 2020-01-29 21:42
Environment: Jenkins 2.138, email-ext 2.68
Priority: Major Major
Reporter: Guillaume CERNIER

Since JENKINS-18203, it's possible to refer to files (template, script, etc...) to be used by email-ext-plugin and emailext-template-plugin from files defined through config-file-provider-plugin by using the "managed:" prefix.

The issue is that the "managed:" syntax is working fine only when such configuration is done at the top level of Jenkins.
Whereas the config-file-provider-plugin enables also to configure such files at folder level (cf. cloudbees-folder-plugin), with lowest folder level taking precedence in case of files with same name defined at several levels of the folder tree, this "managed:" syntax does not work in such case like it should.

I'm providing a solution in a GitHub pull-request with unit-tests in a separated commit, so that anyone can figure out the failing scenarii before the fix commit.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

guillaume.cernier@amadeus.com (JIRA)

unread,
Jan 29, 2020, 4:44:02 PM1/29/20
to jenkinsc...@googlegroups.com

guillaume.cernier@amadeus.com (JIRA)

unread,
Jan 29, 2020, 4:54:02 PM1/29/20
to jenkinsc...@googlegroups.com

guillaume.cernier@amadeus.com (JIRA)

unread,
Jan 29, 2020, 5:00:02 PM1/29/20
to jenkinsc...@googlegroups.com
Guillaume CERNIER started work on Bug JENKINS-60911
 
Change By: Guillaume CERNIER
Status: Open In Progress

guillaume.cernier@amadeus.com (JIRA)

unread,
Jan 30, 2020, 5:15:02 AM1/30/20
to jenkinsc...@googlegroups.com
Guillaume CERNIER updated an issue
 
Change By: Guillaume CERNIER
Since JENKINS-18203, it's possible to refer to files (template, script, etc...) to be used by {{email-ext-plugin}} and {{emailext-template-plugin}} from files defined through config-file-provider-plugin by using the "{{managed:}}" prefix.

The issue is that the "{{managed:}}" syntax is working fine only when such configuration is done at the top level of Jenkins.
Whereas the {{config-file-provider-plugin}} enables also to configure such files at folder level (cf. {{cloudbees-folder-plugin}}), with lowest folder level taking precedence in case of files with same name defined at several levels of the folder tree, this "{{managed:}}" syntax does not work in such case like it should.

I'm providing a solution in a
[ GitHub pull-request |https://github.com/jenkinsci/email-ext-plugin/pull/196] with unit-tests in a separated commit, so that anyone can figure out the failing scenarii before the fix commit.

guillaume.cernier@amadeus.com (JIRA)

unread,
Feb 22, 2020, 11:25:02 AM2/22/20
to jenkinsc...@googlegroups.com

guillaume.cernier@amadeus.com (JIRA)

unread,
Feb 22, 2020, 11:26:03 AM2/22/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages