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

Problems with Validating String Parameter Plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm using the following validation string on the code but doesn't work?

      validatingString(name: 'Test', description: 'Choose the name of your fileset that you want to create', regex: '^[^,.]$', failedValidationMessage: 'Please use integers without , or .')

      After that I run my pipeline and get the following error >>>>
      WorkflowScript: 26: Invalid parameter type "validatingString". Valid parameter types: [booleanParam, choice, credentials, file, gitParameter, text, password, run, string, email] @ line 26, column 9.
      validatingString(name: 'FILESET', description: 'Choose the name of your fileset that you want to create', regex: '^[^,.]*$', failedValidationMessage: 'Please use integers without , or .')

      1 error
      Can someone take a look on this one??

        Attachments

          Activity

          Hide
          stchaves Steven Chaves added a comment -

          Peter Hayes If you can help me with this, Im totally stuck on this.. 

          Show
          stchaves Steven Chaves added a comment - Peter Hayes If you can help me with this, Im totally stuck on this.. 
          Hide
          raihaan Raihaan Shouhell added a comment -

          Can't reproduce this issue on the latest version

          Show
          raihaan Raihaan Shouhell added a comment - Can't reproduce this issue on the latest version
          Hide
          raihaan Raihaan Shouhell added a comment -

          I've added a test to validate that Pipeline does in fact work correctly https://github.com/jenkinsci/validating-string-parameter-plugin/pull/28

          Show
          raihaan Raihaan Shouhell added a comment - I've added a test to validate that Pipeline does in fact work correctly https://github.com/jenkinsci/validating-string-parameter-plugin/pull/28
          Hide
          raihaan Raihaan Shouhell added a comment -

          Please ensure that the plugin is properly installed

          Show
          raihaan Raihaan Shouhell added a comment - Please ensure that the plugin is properly installed

            People

            Assignee:
            raihaan Raihaan Shouhell
            Reporter:
            stchaves Steven Chaves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: