Skip to content

Commit

Permalink
[JENKINS-48456] Add support for Sun OS platforms (such as solaris)
Browse files Browse the repository at this point in the history
Add sunos in platform enumeration
  • Loading branch information
antoninBr authored and nfalco79 committed Dec 9, 2017
1 parent 5351970 commit 08f57aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/jenkins/plugins/nodejs/tools/Platform.java
Expand Up @@ -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.
Expand Down Expand Up @@ -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.