[JIRA] (JENKINS-57596) Problem using MSBuild Tool name in multi-line batch file in Pipeline script

2019-05-22 Thread liangming2...@outlook.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ming Liang resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
   bat label: '', script: '''@echo off changed to   bat label: '', script: """@echo off{{}}  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-57596  
 
 
  Problem using MSBuild Tool name in multi-line batch file in Pipeline script   
 

  
 
 
 
 

 
Change By: 
 Ming Liang  
 
 
Status: 
 In Progress Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199520.1558513545000.9680.1558578840159%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57596) Problem using MSBuild Tool name in multi-line batch file in Pipeline script

2019-05-22 Thread liangming2...@outlook.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ming Liang started work on  JENKINS-57596  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Ming Liang  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199520.1558513545000.9677.1558578780196%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57596) Problem using MSBuild Tool name in multi-line batch file in Pipeline script

2019-05-22 Thread liangming2...@outlook.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ming Liang updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57596  
 
 
  Problem using MSBuild Tool name in multi-line batch file in Pipeline script   
 

  
 
 
 
 

 
Change By: 
 Ming Liang  
 

  
 
 
 
 

 
  In Jenkins->Global Tool Configuration->MSBUILDI Added a MSBUILD like belowName: MSBuildTool2017Path to MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exeVariable ${tool 'MSBuildTool2017'} can be recognized in one-line batch script but not in the multi-line script, Why?Is there any way I can void the hardcoded MSBUILd Tool Path in the batch script of Jenkins pipeline script?def buildSource() \{ //${tool 'MSBuildTool2017'} is recognized. {{bat "\"${tool 'MSBuildTool2017'}\" ABC.sln /p:Configuration=Release /p:Platform=\"x64\"  /t:rebuild"}}}def BuildABC() \{ //${tool 'MSBuildTool2017'} is not recognized. { {  bat label: '', script: '''@echo offset RETVAL=0echo Navigating to ABC foldercd %WORKSPACE%cd projectecho Cleaning up bin folderREM del bin_x64 \\  *.exe /F /Q /SREM if NOT "%errorlevel%" == "0" set RETVAL=%errorlevel%echo Navigating to InstallActionsolution foldercd ABCecho Building ABC Binaries\"${tool 'MSBuildTool2017'}\" "ABC.sln" /p:Configuration=Release /p:Platform=\"x64\" /t:rebuildif NOT "%errorlevel%" == "0" set RETVAL=%errorlevel%exit %RETVAL%''' }} }  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You 

[JIRA] (JENKINS-57596) Problem using MSBuild Tool name in multi-line batch file in Pipeline script

2019-05-22 Thread liangming2...@outlook.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ming Liang created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57596  
 
 
  Problem using MSBuild Tool name in multi-line batch file in Pipeline script   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Lionel Cabasson  
 
 
Components: 
 msbuild-plugin  
 
 
Created: 
 2019-05-22 08:25  
 
 
Labels: 
 pipeline plugin  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Ming Liang  
 

  
 
 
 
 

 
   In Jenkins->Global Tool Configuration->MSBUILD I Added a MSBUILD like below Name: MSBuildTool2017 Path to MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe Variable ${tool 'MSBuildTool2017'} can be recognized in one-line batch script but not in the multi-line script, Why? Is there any way I can void the hardcoded MSBUILd Tool Path in the batch script of Jenkins pipeline script? def buildSource() { //${tool 'MSBuildTool2017'} is recognized.  bat "\"${tool 'MSBuildTool2017'}\" ABC.sln /p:Configuration=Release /p:Platform=\"x64\" /t:rebuild" } def BuildABC() { //${tool 'MSBuildTool2017'} is not recognized.  {{bat label: '', script: '''@echo off set RETVAL=0 echo Navigating to ABC folder cd %WORKSPACE% cd project echo Cleaning up bin folder REM del bin_x64*.exe /F /Q /S REM if NOT "%errorlevel%" == "0" set RETVAL=%errorlevel% echo Navigating to InstallActionsolution folder cd ABC echo Building ABC Binaries \"${tool 'MSBuildTool2017'}\" "ABC.sln" /p:Configuration=Release /p:Platform=\"x64\" /t:rebuild if NOT "%errorlevel%" == "0" set RETVAL=%errorlevel% exit %RETVAL%'''}} }