Class YarnUtilities
- java.lang.Object
-
- io.interrogate.npmyarnwrappersteps.plugin.YarnUtilities
-
public class YarnUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description YarnUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addYarnToPath(hudson.EnvVars envVars)
static java.lang.String
getYarnVersion(hudson.FilePath workspace, hudson.Launcher launcher, java.lang.String workspaceSubdirectory, hudson.EnvVars envVars)
static void
install(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
static void
install(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, java.lang.String yarnInstallerUrl)
static boolean
isYarnInstalled()
static void
setYarnConfig(java.lang.String key, java.lang.String value, java.lang.String workspaceSubdirectory, hudson.FilePath workspace, hudson.Launcher launcher, java.io.PrintStream logger, hudson.EnvVars envVars)
-
-
-
Method Detail
-
isYarnInstalled
public static boolean isYarnInstalled() throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getYarnVersion
public static java.lang.String getYarnVersion(hudson.FilePath workspace, hudson.Launcher launcher, java.lang.String workspaceSubdirectory, hudson.EnvVars envVars) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
install
public static void install(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, java.lang.String yarnInstallerUrl) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
install
public static void install(hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
addYarnToPath
public static void addYarnToPath(hudson.EnvVars envVars)
-
setYarnConfig
public static void setYarnConfig(java.lang.String key, java.lang.String value, java.lang.String workspaceSubdirectory, hudson.FilePath workspace, hudson.Launcher launcher, java.io.PrintStream logger, hudson.EnvVars envVars) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-