Skip to content
Permalink
Browse files

[JENKINS-48456] Add support for Sun OS platforms (such as solaris)

Add sunos in platform enumeration
  • Loading branch information
antoninBr authored and nfalco79 committed Dec 9, 2017
1 parent 5351970 commit 08f57aaaaba22a24ddaab9aa06aa8621621c18c3
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/main/java/jenkins/plugins/nodejs/tools/Platform.java
@@ -11,7 +11,7 @@
* Supported platform.
*/
public enum Platform {
LINUX("node", "npm", "bin"), WINDOWS("node.exe", "npm.cmd", ""), OSX("node", "npm", "bin");
LINUX("node", "npm", "bin"), WINDOWS("node.exe", "npm.cmd", ""), OSX("node", "npm", "bin"), SUN_OS("node", "npm", "bin");

/**
* Choose the file name suitable for the downloaded Node bundle.
@@ -72,7 +72,10 @@ private static Platform detect(Map<Object, Object> systemProperties) throws Dete
if (arch.contains("mac")) {
return OSX;
}
if (arch.contains("sunos")) {
return SUN_OS;
}
throw new DetectionFailedException("Unknown OS name: " + arch);
}

}
}

0 comments on commit 08f57aa

Please sign in to comment.
You can’t perform that action at this time.