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

Validating string parameter value is ignored by 249.v75d865a_a_d530

    • 251.vc34e592b_8a_4d

      After updating the plugin to v249.v75d865a_a_d530 on Jenkins v2.485

      The parameter is entered, but Jenkins is unaware of it

      The parameter value is not available within the freestyle job and is not shown in the build history pages as a parameter. Parameter values are displayed by the 183.v3748e79b_9737 version.

          [JENKINS-74871] Validating string parameter value is ignored by 249.v75d865a_a_d530

          Mark Waite added a comment -

          Thanks for reporting the issue. I'm able to duplicate the issue with the following steps:

          1. Create a plugins.txt file that includes the previous release of the validating string parameter plugin
          2. Create a run-jenkins.sh shell script that downloads Jenkins 2.485 and the plugins listed in plugins.txt
          3. Run the run-jenkins.sh shell script and complete the setup wizard by creating a user and installing no additional plugins
          4. Create a freestyle job with a validating string parameter that checks the string matches a regular expression (mine used the expression '.* Waite' for a WAITE_FAMILY_NAME parameter)
          5. Run the freestyle job to confirm that the validating string parameter accepts expected values like "Mark Waite" and rejects values like "Tony Stark"
          6. Confirm that the parameters are listed for the job in the history of the job
          7. Upgrade the validating string parameter to the 249.v75d865a_a_d530 release and restart Jenkins
          8. Run the freestyle job, enter the validating string parameter, and run the job
          9. Confirm that the parameter value that was entered is not listed on the history

          Mark Waite added a comment - Thanks for reporting the issue. I'm able to duplicate the issue with the following steps: Create a plugins.txt file that includes the previous release of the validating string parameter plugin Create a run-jenkins.sh shell script that downloads Jenkins 2.485 and the plugins listed in plugins.txt Run the run-jenkins.sh shell script and complete the setup wizard by creating a user and installing no additional plugins Create a freestyle job with a validating string parameter that checks the string matches a regular expression (mine used the expression '.* Waite' for a WAITE_FAMILY_NAME parameter) Run the freestyle job to confirm that the validating string parameter accepts expected values like "Mark Waite" and rejects values like "Tony Stark" Confirm that the parameters are listed for the job in the history of the job Upgrade the validating string parameter to the 249.v75d865a_a_d530 release and restart Jenkins Run the freestyle job, enter the validating string parameter, and run the job Confirm that the parameter value that was entered is not listed on the history

          Basil Crow added a comment -

          Basil Crow added a comment - Fixed in https://github.com/jenkinsci/validating-string-parameter-plugin/pull/147 . Released in 251.vc34e592b_8a_4d .

            yafenkin Yaroslav Afenkin
            marwanbakeer Marwan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: