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

Cannot use MSbuild in loop to build multiple projects in single action

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • msbuild-plugin
    • None

      To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

      By using this, i can run only one project file alone by specifying the below details.

      MSBuild Version: msbuild(set through environment variables)
      MSBuild Build File: ProjectA.sln
      Command Line Arguments: /p:Configuration=Release

      But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

      But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to MSBuild Build File: and build in single step?

          [JENKINS-36385] Cannot use MSbuild in loop to build multiple projects in single action

          Vadivel Natarajan created issue -
          Vadivel Natarajan made changes -
          Attachment New: MSBuild.PNG [ 33202 ]
          Vadivel Natarajan made changes -
          Description Original: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Is this possible? or Any other option available to achieve this to pass multiple projects to *MSBuild Build File:* ?

          New: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

          But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to *MSBuild Build File: and build in single step?

          Vadivel Natarajan made changes -
          Description Original: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

          But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to *MSBuild Build File: and build in single step?

          New: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

          But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to MSBuild Build File: and build in single step?

          Vadivel Natarajan made changes -
          Description Original: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

          But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to MSBuild Build File: and build in single step?

          New: To build .NET projects, am using "Build a Visual Studio project or Solution using MSBuild" option under Build section in Jenkins job.

          By using this, i can run only one project file alone by specifying the below details.

          *MSBuild Version:* msbuild(set through environment variables)
          *MSBuild Build File:* ProjectA.sln
          *Command Line Arguments:* /p:Configuration=Release

          But my requirement is to build multiple projects using only one "Build a Visual Studio project or Solution using MSBuild" in my Jenkins job. Normally we can do this using iteration(getting all the solution files in a particular directory and build it)

          But in jenkins, is this possible by looping the "Build a Visual Studio project or Solution using MSBuild" or any other option available(plugin) to achieve this to pass multiple projects to *MSBuild Build File:* and build in single step?

          Lionel Cabasson made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Vadivel Natarajan made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Vadivel Natarajan made changes -
          Summary Original: MSbuild does not build multiple projects in single action New: Cannot use MSbuild in loop to build multiple projects in single action
          Vadivel Natarajan made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173090 ] New: JNJira + In-Review [ 186376 ]
          Lionel Cabasson made changes -
          Assignee Original: Lionel Cabasson [ marshall777 ]
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Priority Original: Critical [ 2 ] New: Minor [ 4 ]

            Unassigned Unassigned
            vadivel Vadivel Natarajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: