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

Default Value not honoured

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • git-parameter-plugin
    • None
    • Jenkins ver. 2.45
      Git Parameter Plugin 0.8.0

    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

          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited

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

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

          Hi emoshaya_cognitoiq
          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.

          klimas7 Boguslaw Klimas added a comment - Hi emoshaya_cognitoiq 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.
          emoshaya_cognitoiq Ebrahim Moshaya added a comment - - edited

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

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

          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

          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

          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

          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

          release 0.8.1

          klimas7 Boguslaw Klimas added a comment - release 0.8.1

          People

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

            Dates

              Created:
              Updated:
              Resolved: