Hello you probably want to use https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#isunix-checks-if-running-on-a-unix-like-node
On Sun, 24 Jan 2021 at 16:51, <jenkinsci-users@googlegroups.com> wrote: > jenkinsci-users@googlegroups.com > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/jenkinsci-users/topics> > Google > Groups > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > Today's topic summary > View all topics > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/jenkinsci-users/topics> > > - Portable Maven launch <#m_-8632882283779708753_group_thread_0> - 1 > Update > > Portable Maven launch > <http://groups.google.com/group/jenkinsci-users/t/9ea87882855e2d81?utm_source=digest&utm_medium=email> > Jochen Wiedmann <jochen.wiedm...@gmail.com>: Jan 23 12:12PM -0800 > > Hi, > > I've got a pipeline file, that should be executable on a Windows build > server, and on a Linux build server. The pipeline is launching Maven as > follows: > > On Linux: > > sh "mvn ...more > <http://groups.google.com/group/jenkinsci-users/msg/25ed1c8bff2a3?utm_source=digest&utm_medium=email> > Back to top <#m_-8632882283779708753_digest_top> > You received this digest because you're subscribed to updates for this > group. You can change your settings on the group membership page > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/jenkinsci-users/join> > . > To unsubscribe from this group and stop receiving emails from it send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG_uJ%2BBkaB5tgCW-YFrJhvpgMYCXj062V-x3gRioVMwg_jT47A%40mail.gmail.com.