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 <MAVEN_OPTIONS>" But on Windows, this appears not to work, so I've got to use: bat "mvn.cmd <MAVEN_OPTIONS>" Right now, I can use either of these steps, so have to choose between Windows, and Linux. Is there any possibility to get this portable? I am thinking something like if (isWindows()) { bat "mvn.cmd <MAVEN_OPTIONS>" } else { sh "mvn <MAVEN_OPTIONS>" } Thanks, Jochen -- 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/20d737c4-3763-421a-9e54-1b414f93169an%40googlegroups.com.