How to instruct Jenkinsfile to use VS 2022

363 views
Skip to first unread message

Dorin Bogdan

unread,
Aug 28, 2023, 5:58:53 AM8/28/23
to jenkin...@googlegroups.com
Hi everyone,

I updated the pom.xml to use VS 2022's integrated MSBuild.exe:

Since then, the ”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


We use a Jenkinsfile like this:

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

Please help.

Note: We do NOT use / need Docker. 

Thank you in advance,
Dorin.

Björn Pedersen

unread,
Aug 28, 2023, 9:32:43 AM8/28/23
to Jenkins Developers
Did you check if the jenkins project windows workers have VS2022 installed at all?  And if the answer is yes, is the path correct? These tests are not runnig  on your local machine, so don't expect arbitrary tools to be available.

Björn Pedersen

unread,
Aug 28, 2023, 9:39:49 AM8/28/23
to Jenkins Developers
Björn Pedersen schrieb am Montag, 28. August 2023 um 15:32:43 UTC+2:
dorin....@gmail.com schrieb am Montag, 28. August 2023 um 11:58:53 UTC+2:
Hi everyone,


Did you check if the jenkins project windows workers have VS2022 installed at all?  And if the answer is yes, is the path correct? These tests are not runnig  on your local machine, so don't expect arbitrary tools to be available.

Dorin Bogdan

unread,
Aug 30, 2023, 3:41:59 AM8/30/23
to jenkin...@googlegroups.com
Hi Björn Pedersen,

Thank you for reply.
It seems that is not possible at this moment, more details here:

We have to use a Docker image.

Dorin.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/dd8ef33a-86bc-43fb-a794-984c8f867be3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages