This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      it is often usefull in reusable code to know if you are running on a windows slave or not.

      For example you may want to invoke maven - but on windows you need bat 'mvn ...' and Unix like systems sh ' mvn...'

      The current workaround involves a function like

      boolean isWindows() {
          return env.OS == 'Windows_NT'
      }
      

      but this is not ideal.

      so please implement something that can be more reliable to determine a windows node. (get the path separator, directory seporator - or just isCurrentNodeWindows())

            Assignee:
            Jesse Glick
            Reporter:
            James Nord
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: