unless I'm mistaken or I missed the feature, MsBuild plugin is not pipeline compatible ( https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md seem to agree on that, not sure if this up to date). If I'm wrong I will totally up to use it. I was using batch because the plugin was not compatible, now I use powershell because the batch often hang when the MsBuild command terminate.
so yeah this is a workaround the other workaround to just make this simple use case work :-( On Friday, June 30, 2017 at 3:38:07 PM UTC-4, slide wrote: > > Why not use the msbuild plugin to launch msbuild? > https://wiki.jenkins.io/display/JENKINS/MSBuild+Plugin?focusedCommentId=67568742 > > On Fri, Jun 30, 2017 at 12:35 PM <[email protected] <javascript:>> wrote: > >> So far I can execute the following into a powershell: >> $msbuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" >> $options = "BodyCad.sln /m >> /p:Configuration=Release;Platform=x64;SolutionDir=`" + $PSScriptRoot + `"\ >> /t:Clean;Build" >> Invoke-Expression "& '$msbuild' $options" >> >> But I cannot make this happen when running into piepline powershell so far >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/f1427e69-e1fa-47c6-92c8-dd616b7d38c7%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/f1427e69-e1fa-47c6-92c8-dd616b7d38c7%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/45182aaf-8128-4bcc-8c3b-3a435240d6c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
