msbuild.exe is not recognized command after build in Jenkins

后端 未结 5 1400
无人共我
无人共我 2021-02-07 00:14

1. sharing violation

after following http://programmaticponderings.wordpress.com/2012/08/08/convert-vs-2010-database-project-to-ssdt-and-automate-publis

相关标签:
5条回答
  • 2021-02-07 00:24

    For the latest version of jenkins (3.0), you have to configure MSBuild in in the Tools>Manage Jenkins menu. Name a job here eg: msbuild. Once that is done, go to the job. Under the MSBuild module select the build (in this case msbuild) and now kick off the job. You should be good to go.

    0 讨论(0)
  • 2021-02-07 00:25

    If you want to build a .NET project using Jenkins, follow these steps:

    1. Install MsBuild Plugin

    2. Go to Jenkins -> Manage Jenkins -> Configure System (On newer versions: Jenkins -> Manage Jenkins -> Global Tool Configuration -> MSBuild)

    3. In the MSBuild section click the AddMsBuild button and specify the details:

      • Name: Name of the MsBuild
      • Path to MsBuild: Specify the path of msbuild.exe. Example: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe
    4. Save and apply the changes.

    5. Select your job.

    6. Select Add Build Step.

    7. Select MsBuild version.

    8. Specify the path to the project file (.csproj or .sln)

    1. Build your project.
    0 讨论(0)
  • 2021-02-07 00:25
    1. Install Visual Studio on the Server
    2. Log into your Jenkins
    3. Install the MSBuild Plugin
    4. Go to Jenkins > Manage Jenkins > Global Tool Configuration
    5. Click MSBuild Installations
    6. Click Add MSBuild
    7. Name: Visual Studio (i.e. Visual Studio 2019 Community)
    8. Path to MSBuild (i.e. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin)
    9. Click Save
    10. Go to your Jenkins Project
    11. Click Configure
    12. Go to Build
    13. Select your MSBuild Version
    14. Enter the name of your Solutin File
    0 讨论(0)
  • 2021-02-07 00:39

    select the MSBuild Version in job's configuration,and the MSBuild Version is configured in your jenkins' configure system.

    0 讨论(0)
  • 2021-02-07 00:40

    For the newer version of Jenkins, this option is available under this section ..

    Manage Jenkins -> Global Tool Configuration ->  MSBuild
    

    From this answer: https://stackoverflow.com/a/37939483/2880781

    0 讨论(0)
提交回复
热议问题