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

create .msi package using pipeline from .net application code

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • msbuild-plugin
    • None

      I'm new to DevOps and not aware of .net application build process. I'm trying to create a scripted pipeline using jenkins for .net application for instance I'm taking the code from https://github.com/executeautomation/SeleniumNUnitParam and trying to create .msi package. I'm just able to checkout the code but later the build steps are failing stating the file ,directory or volume label syntax is incorrect. I have Installed msbuild,git and nuget plugin. Below is my code

       

      {{}}

      {{node('new'){
      stage('Checkout SCM'){}} 

      {{bat 'git config --global http.sslverify false --Replace-all'
      checkout scm
      echo 'COMPLETE: Checkout SCM'}}}

      stage('Restore Nuget'){

      {{ bat 'C:/tool:/nuget.exe restore SeleniumNUnitParam/SeleniumNUnitParam.csproj'
      } }}

      stage('Build'){

      {{ bat "\" ${tool 'MSBUILD'}\" SeleniumNUnitParam/SeleniumNUnitParam.csproj
      /p:configuration=Release /p:Platform="Any CPU" /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}"}}

      {{ }}}

            Unassigned Unassigned
            vodevops Vinay devops
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: