Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: git-parameter-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.45
      Git Parameter Plugin 0.8.0
    • Similar Issues:

      Description

      When I have origin/master as the default value as in the screenshot attached. This works perfectly until someone creates a branch called for example: master-blah-blah or master-test or anything else proceeding master. when I click on build with parameters. It defaults to the other branches and not origin/master.

        Attachments

          Activity

          Hide
          klimas7 Boguslaw Klimas added a comment -

          release 0.8.1

          Show
          klimas7 Boguslaw Klimas added a comment - release 0.8.1
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Boguslaw Klimas
          Path:
          src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/javascript/git-parameter.js
          http://jenkins-ci.org/commit/git-parameter-plugin/0910a87e77fa20733360410ce59d584669b415e7
          Log:
          Merge pull request #49 from jenkinsci/feature/JENKINS-42313

          JENKINS-42313

          Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/f8e628cdb8e8...0910a87e77fa

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Boguslaw Klimas Path: src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/javascript/git-parameter.js http://jenkins-ci.org/commit/git-parameter-plugin/0910a87e77fa20733360410ce59d584669b415e7 Log: Merge pull request #49 from jenkinsci/feature/ JENKINS-42313 JENKINS-42313 Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/f8e628cdb8e8...0910a87e77fa
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: klimas7
          Path:
          src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/javascript/git-parameter.js
          http://jenkins-ci.org/commit/git-parameter-plugin/e1403e691a420002219dc884a1086eaafe9d0a6f
          Log:
          JENKINS-42313

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: klimas7 Path: src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/javascript/git-parameter.js http://jenkins-ci.org/commit/git-parameter-plugin/e1403e691a420002219dc884a1086eaafe9d0a6f Log: JENKINS-42313
          Hide
          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited

          Thanks for your reply Boguslaw Klimas This is not really a high priority as I solved this issue by setting the branch filter to:

          (?!^origin/master.*)(^.*$)|(^origin/master$)
          
          Show
          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited Thanks for your reply Boguslaw Klimas This is not really a high priority as I solved this issue by setting the branch filter to: (?!^origin/master.*)(^.*$)|(^origin/master$)
          Hide
          klimas7 Boguslaw Klimas added a comment -

          Hi Ebrahim Moshaya
          Yes, I watched it. I'm thinking of the best solution.
          Currently it is marked element that contains the default value.

          Plans to change this, so that first find element which is equal to the default value and as you will not find it marked the telemet that contains the value to default.

          Show
          klimas7 Boguslaw Klimas added a comment - Hi Ebrahim Moshaya Yes, I watched it. I'm thinking of the best solution. Currently it is marked element that contains the default value. Plans to change this, so that first find element which is equal to the default value and as you will not find it marked the telemet that contains the value to default.
          Hide
          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited

          Hi Boguslaw Klimas, have you had a chance to look at this issue? I solved this issue by setting the branch filter to:

          (?!^origin/master.*)(^.*$)|(^origin/master$)
          
          Show
          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited Hi Boguslaw Klimas , have you had a chance to look at this issue? I solved this issue by setting the branch filter to: (?!^origin/master.*)(^.*$)|(^origin/master$)

            People

            • Assignee:
              klimas7 Boguslaw Klimas
              Reporter:
              emoshaya_cognitoiq Ebrahim Moshaya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: