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

Support adding JIRA sites on folder

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We are trying to deploy onto a shared Jenkins cluster, and one of the only things that holds us back is the fact that the JIRA site configuration is global and cannot be configured on a folder-by-folder basis.

      I would like to be able to configure the JIRA sites on a folder instead of just globally, with the folder ones taking precedence over the global ones.

      A good example of this being done already is in the pipeline-model-definition-plugin. The config provider checks the parent folders first (going up the hierarchy), and then the global configuration. I've implemented this on at least one plugin myself and can help out if it's not clear.

        Attachments

          Issue Links

            Activity

            Hide
            bksaville Brian Saville added a comment -

            I opened a PR for this feature. It only supports one site per folder and does not support a per-job override, but I think a folder-by-folder configuration will work quite well for many users.

            https://github.com/jenkinsci/jira-plugin/pull/124

            Show
            bksaville Brian Saville added a comment - I opened a PR for this feature. It only supports one site per folder and does not support a per-job override, but I think a folder-by-folder configuration will work quite well for many users. https://github.com/jenkinsci/jira-plugin/pull/124
            Hide
            bksaville Brian Saville added a comment - - edited

            There are some problems with the PR that I didn't catch earlier - namely in what happens when a folder is saved without the JIRA config present (i.e. no site is added). I'm working on fixing it right now.

            UPDATE: The PR is now fixed. I ended up using multiple sites defined on a folder, but only the first is actually used. Also, per-job configuration is supported in cases such as multibranch jobs, since the job is also a folder and can have sites configured on it.

            Show
            bksaville Brian Saville added a comment - - edited There are some problems with the PR that I didn't catch earlier - namely in what happens when a folder is saved without the JIRA config present (i.e. no site is added). I'm working on fixing it right now. UPDATE : The PR is now fixed. I ended up using multiple sites defined on a folder, but only the first is actually used. Also, per-job configuration is supported in cases such as multibranch jobs, since the job is also a folder and can have sites configured on it.
            Hide
            bksaville Brian Saville added a comment -

            I fixed the build by adding testing and improving code coverage. The PR is ready to be merged Radek Antoniuk .

            Show
            bksaville Brian Saville added a comment - I fixed the build by adding testing and improving code coverage. The PR is ready to be merged Radek Antoniuk .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Brian Saville
            Path:
            src/main/java/hudson/plugins/jira/EmptyFriendlyURLConverter.java
            src/main/java/hudson/plugins/jira/JiraFolderProperty.java
            src/main/java/hudson/plugins/jira/JiraProjectProperty.java
            src/main/java/hudson/plugins/jira/JiraSite.java
            src/main/resources/hudson/plugins/jira/JiraFolderProperty/config.jelly
            src/main/resources/hudson/plugins/jira/Messages.properties
            src/test/java/hudson/plugins/jira/EmptyFriendlyURLConverterTest.java
            http://jenkins-ci.org/commit/jira-plugin/b1408fe3dac982fc71dda9978da2cf33451479a7
            Log:
            JENKINS-44524 Support configuring a site on a folder

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Brian Saville Path: src/main/java/hudson/plugins/jira/EmptyFriendlyURLConverter.java src/main/java/hudson/plugins/jira/JiraFolderProperty.java src/main/java/hudson/plugins/jira/JiraProjectProperty.java src/main/java/hudson/plugins/jira/JiraSite.java src/main/resources/hudson/plugins/jira/JiraFolderProperty/config.jelly src/main/resources/hudson/plugins/jira/Messages.properties src/test/java/hudson/plugins/jira/EmptyFriendlyURLConverterTest.java http://jenkins-ci.org/commit/jira-plugin/b1408fe3dac982fc71dda9978da2cf33451479a7 Log: JENKINS-44524 Support configuring a site on a folder
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Brian Saville
            Path:
            src/test/groovy/hudson/plugins/jira/JiraFolderPropertyTest.groovy
            src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy
            http://jenkins-ci.org/commit/jira-plugin/086916977904f65f831d57138fecf170714df269
            Log:
            JENKINS-44524 Add tests for new class and JiraSite.get

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Brian Saville Path: src/test/groovy/hudson/plugins/jira/JiraFolderPropertyTest.groovy src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy http://jenkins-ci.org/commit/jira-plugin/086916977904f65f831d57138fecf170714df269 Log: JENKINS-44524 Add tests for new class and JiraSite.get
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Artem Koshelev
            Path:
            src/main/java/hudson/plugins/jira/EmptyFriendlyURLConverter.java
            src/main/java/hudson/plugins/jira/JiraFolderProperty.java
            src/main/java/hudson/plugins/jira/JiraProjectProperty.java
            src/main/java/hudson/plugins/jira/JiraSite.java
            src/main/resources/hudson/plugins/jira/JiraFolderProperty/config.jelly
            src/main/resources/hudson/plugins/jira/Messages.properties
            src/test/groovy/hudson/plugins/jira/JiraFolderPropertyTest.groovy
            src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy
            src/test/java/hudson/plugins/jira/EmptyFriendlyURLConverterTest.java
            http://jenkins-ci.org/commit/jira-plugin/85cab2b0f8771912bae9b5dd723dd0ca7d6cea22
            Log:
            Merge pull request #124 from bluesliverx/master

            JENKINS-44524 Support configuring a site on a folder

            Compare: https://github.com/jenkinsci/jira-plugin/compare/6ec3f7e773ae...85cab2b0f877

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Artem Koshelev Path: src/main/java/hudson/plugins/jira/EmptyFriendlyURLConverter.java src/main/java/hudson/plugins/jira/JiraFolderProperty.java src/main/java/hudson/plugins/jira/JiraProjectProperty.java src/main/java/hudson/plugins/jira/JiraSite.java src/main/resources/hudson/plugins/jira/JiraFolderProperty/config.jelly src/main/resources/hudson/plugins/jira/Messages.properties src/test/groovy/hudson/plugins/jira/JiraFolderPropertyTest.groovy src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy src/test/java/hudson/plugins/jira/EmptyFriendlyURLConverterTest.java http://jenkins-ci.org/commit/jira-plugin/85cab2b0f8771912bae9b5dd723dd0ca7d6cea22 Log: Merge pull request #124 from bluesliverx/master JENKINS-44524 Support configuring a site on a folder Compare: https://github.com/jenkinsci/jira-plugin/compare/6ec3f7e773ae...85cab2b0f877
            Hide
            bksaville Brian Saville added a comment -

            This was completed via the PR and 2.4 was released with it.

            Show
            bksaville Brian Saville added a comment - This was completed via the PR and 2.4 was released with it.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bksaville Brian Saville
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: