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

Configure JIRA credentials at the Job configuration level

    Details

    • Type: Improvement
    • Status: In Progress (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: jira-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Currently JIRA credentials can be configured only at the Jenkins Configuration level and not at the Job configuration level.

      We are providing build management support services to more than 20 divisions like Engineering, Infra, etc. This feature fills up security loop hole, When we provide Jenkins as service we don't allow teams to modify other teams jobs. In it's current form we cannot support JIRA Plugin as a service due to security issues.

        Attachments

          Issue Links

            Activity

            Hide
            valentijnscholten Valentijn Scholten added a comment - - edited

            I agree this would make the plugin more usable for bigger/enterprise environments. We don't want to people to be able to know credentials to view other departments projects/issues.
            It could be beneficials to start using the Jenkins Credentials Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin

            Show
            valentijnscholten Valentijn Scholten added a comment - - edited I agree this would make the plugin more usable for bigger/enterprise environments. We don't want to people to be able to know credentials to view other departments projects/issues. It could be beneficials to start using the Jenkins Credentials Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin
            Hide
            alecharp Adrien Lecharpentier added a comment -

            At this moment, the plugin is using credentials-plugin to store the username/password to connect the a Jira server. It was not the case when this ticket was created but only since 3.0.0 (May 20th, 2018).

            The thing is, from what I see, the plugin allow to configure Jira connection on the global level only. So that we can maximize the connection details usage. Having the connection details configurable on the job / folder level might go in the opposite direction (not really in the folder case but bear with me).

            I didn't see any step / action in the plugin requiring any credentials, as they all JiraSite#get to find the Jira configuration required for project.

            I'm not saying we couldn't make this happen, I'm just wondering about the need to have the Jira server connection configurable on job level, as most of the time (all the time?) the connection is configured by an administrator.

            Show
            alecharp Adrien Lecharpentier added a comment - At this moment, the plugin is using credentials-plugin to store the username/password to connect the a Jira server. It was not the case when this ticket was created but only since 3.0.0 (May 20th, 2018). The thing is, from what I see, the plugin allow to configure Jira connection on the global level only. So that we can maximize the connection details usage. Having the connection details configurable on the job / folder level might go in the opposite direction (not really in the folder case but bear with me). I didn't see any step / action in the plugin requiring any credentials, as they all JiraSite#get to find the Jira configuration required for project. I'm not saying we couldn't make this happen, I'm just wondering about the need to have the Jira server connection configurable on job level, as most of the time (all the time?) the connection is configured by an administrator.
            Hide
            matttt Mathieu Delrocq added a comment -

            Hello, we need it in our company so I will try to do it if it is ok for you. I started somes developments at https://github.com/mat1e/jira-plugin/tree/feature/JENKINS-32087_credentials_at_job_level if you want to take a look.

            Show
            matttt Mathieu Delrocq added a comment - Hello, we need it in our company so I will try to do it if it is ok for you. I started somes developments at https://github.com/mat1e/jira-plugin/tree/feature/JENKINS-32087_credentials_at_job_level if you want to take a look.

              People

              • Assignee:
                Unassigned
                Reporter:
                owood Owen Wood
              • Votes:
                12 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated: