Does your build requires display?
Did you try on your linux without display set?

Regardes,

Arnaud

Le ven. 28 oct. 2022, 05:52, patnlo <[email protected]> a écrit :

> I have what should be a simple project, using msbuild for VS2019 to build
> a particular configuration of my solution. When I run in Visual Studio it
> works. When I run via msbuild from the command line it works. When I try to
> build the project using MSbuild in Jenkins it fails. When I try to run
> msbuild via a command prompt through Jenkins it fails. It gives me the "
> error : Exception has been thrown by the target of an invocation." every
> time.
>
> The developers don't have any idea how to fix it because it never fails
> from Visual Studio, only when the job is sent from Jenkins. FYI, I can
> rebuild this entire solution for my windows release through Jenkins with no
> issues. It only fails when trying to compile our VisualGDB platform for my
> linux configurations. And again, only fails when the compile is started by
> Jenkins.
>
> I'm stumped.
>
> --
> 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/7b686d72-5349-4c44-95fd-775c4080b00fn%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7b686d72-5349-4c44-95fd-775c4080b00fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAESUf_DiAB%2B8HtyTgE%3Djv8q_w_QpmguKNRPCx3z3L1MzvX6qtg%40mail.gmail.com.

Reply via email to