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

msbuild command line argument doesn`t work correctly

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I wanted to add a Command Line parameter ("Release|x64") via msbuild plugin.
      But I had an error in console output:
      'x64' is not recognized as an internal or external command.

      I tried to start the build from server (cmd) and it works. I think, that this plugin doesn`t support (").
      This symbol - (") - needs to be in command line. But in Jenkins console, I didn`t see - (").

      For example:
      Jenkins console: "C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" /Build Release|x64
      cmd on server console: "C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" /Build "Release|x64"

      How can I add "Release|x64" parameter via msbuild plugin correctly?
      Thanks.

        Attachments

          Activity

          Hide
          jbruguerapresenceco Joan Bruguera added a comment - - edited

          Probably related to JENKINS-22344.

          I encountered the same issue. It appears that the contents of the box are not escaped correctly or at least require extra escaping for some reason.

          I could work around this bug by adding a backslash before the double quotes, e.g. writing

          \"

          instead of

          "
          Show
          jbruguerapresenceco Joan Bruguera added a comment - - edited Probably related to JENKINS-22344 . I encountered the same issue. It appears that the contents of the box are not escaped correctly or at least require extra escaping for some reason. I could work around this bug by adding a backslash before the double quotes, e.g. writing \" instead of "

            People

            Assignee:
            kdsweeney kdsweeney
            Reporter:
            14163314 Serg Pr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: