How to instruct Jenkinsfile to use VS 2022 ?

34 views
Skip to first unread message

Dorin Bogdan

unread,
Aug 28, 2023, 6:25:00 AM8/28/23
to jenkin...@googlegroups.com
Hi everyone,

I updated the pom.xml to use VS 2022's integrated MSBuild.exe:
https://github.com/jenkinsci/hpe-application-automation-tools-plugin/pull/610/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8

Since then, the ”[ci.jenkins.io](http://ci.jenkins.io/) / Jenkins” check fails:
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" (in directory "C:\Jenkins\agent\workspace\n-automation-tools-plugin_PR-610\HpToolsLauncher"): CreateProcess error=2, The system cannot find the file specified

https://github.com/jenkinsci/hpe-application-automation-tools-plugin/pull/610/checks?check_run_id=16262369304

We use a Jenkinsfile like this:
https://github.com/jenkinsci/hpe-application-automation-tools-plugin/blob/latest/Jenkinsfile

How can we tell the Jenkins builder to use the new MSBuild.exe ?

Please help.

Note: We do NOT use nor need Docker.

Thank you in advance,
Dorin.
Reply all
Reply to author
Forward
0 new messages