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

Property validators in configuration verify directory exists when parameter is asking for an executable.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When modifying the Jenkins configuration the validators that run to check if the value you typed in exists evaluate to invalid when you specify an executable instead of the directory it resides in. If you only specify the directory to appease the validator, the plugin does not work as it seems to expect a path all the way down to the .exe.

      I've noticed this on both mstest and msbuild plugins, but it may affect the configuration of others as well.

      I am attaching screenshots of the configuration page to show the "valid"(doesn't work) and the "invalid"(does work) state of the page.

      When only specifying the directory, the resulting command for msbuild is this:

      Executing the command cmd.exe /C " C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ /p:VisualStudioVersion=12.0 /t:build /p:Configuration=Release
      'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' is not recognized as an internal or external command, operable program or batch file.

        Attachments

        1. msbuildInvalid.PNG
          msbuildInvalid.PNG
          21 kB
        2. msbuildValid.PNG
          msbuildValid.PNG
          15 kB
        3. mstestInvalid.PNG
          mstestInvalid.PNG
          23 kB
        4. mstestValid.PNG
          mstestValid.PNG
          17 kB

          Issue Links

            Activity

            dineenr Bobby Dineen created issue -
            dineenr Bobby Dineen made changes -
            Field Original Value New Value
            Environment Version 1.600, Windows 2012 Essentials
            dineenr Bobby Dineen made changes -
            Environment Version 1.600, Windows 2012 Essentials Version 1.600, Windows Server 2012 Essentials
            nilleb Ivo Bellin Salarin made changes -
            Component/s mstestrunner-plugin [ 17461 ]
            Component/s mstest-plugin [ 15619 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 161380 ] JNJira + In-Review [ 180677 ]
            marshall777 Lionel Cabasson made changes -
            Link This issue duplicates JENKINS-28679 [ JENKINS-28679 ]
            marshall777 Lionel Cabasson made changes -
            Assignee kdsweeney [ kdsweeney ] Lionel Cabasson [ marshall777 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              marshall777 Lionel Cabasson
              Reporter:
              dineenr Bobby Dineen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: