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

Password not saved in Jenkins Global Configuration

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • jira-trigger-plugin
    • None
    • jira-trigger-plugin 0.2.4

      From: http://stackoverflow.com/questions/40739694/password-not-saved-in-jira-trigger-configuration

      I've installed jira-trigger-plugin which works almost fine. Only thing is, when I add a JQL filter things stop working. In the logs I see "JIRA is not configured in Jenkins Global Settings. Please set the jiraPassword"

      And indeed, in /configure, the password field in 'JIRA Trigger Configuration' is empty. When I fill it in, Save it and then reload the page it's empty again. Root URL and Username are stored, password not.

      Any ideas??

          [JENKINS-39995] Password not saved in Jenkins Global Configuration

          Wisen Tanasa added a comment -

          Caused by JENKINS-39076 which tries to rely on bindJSON method. The bindJSON method in this case fails because we have a custom setter that have a different parameter type (Secret vs String).

          Wisen Tanasa added a comment - Caused by JENKINS-39076 which tries to rely on bindJSON method. The bindJSON method in this case fails because we have a custom setter that have a different parameter type (Secret vs String).

          Wisen Tanasa added a comment -

          Fixed in 0.3.0.

          Wisen Tanasa added a comment - Fixed in 0.3.0.

          Code changed in jenkins
          User: Wisen Tanasa
          Path:
          src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy
          http://jenkins-ci.org/commit/jira-trigger-plugin/e2d17dc79dcbf59cce594f558363439a99778fe3
          Log:
          JENKINS-39995 Enable previously not detected tests.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/e2d17dc79dcbf59cce594f558363439a99778fe3 Log: JENKINS-39995 Enable previously not detected tests.

          Code changed in jenkins
          User: Wisen Tanasa
          Path:
          src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerGlobalConfiguration.groovy
          src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy
          src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/integration/JiraSetupRule.groovy
          src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/jira/JrjcJiraClientIntegrationTest.groovy
          http://jenkins-ci.org/commit/jira-trigger-plugin/a26b796c9be47cfe276e116dd6a9509b66697f8f
          Log:
          JENKINS-39995 Utilise StaplerRequest#bindJSON to save password by removing the custom setter.

          Compare: https://github.com/jenkinsci/jira-trigger-plugin/compare/7b0dcfb3b198...a26b796c9be4

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerGlobalConfiguration.groovy src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/integration/JiraSetupRule.groovy src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/jira/JrjcJiraClientIntegrationTest.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/a26b796c9be47cfe276e116dd6a9509b66697f8f Log: JENKINS-39995 Utilise StaplerRequest#bindJSON to save password by removing the custom setter. Compare: https://github.com/jenkinsci/jira-trigger-plugin/compare/7b0dcfb3b198...a26b796c9be4

            ceilfors Wisen Tanasa
            ceilfors Wisen Tanasa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: