Class NPMBuildWrapper
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- jenkins.tasks.SimpleBuildWrapper
-
- io.interrogate.npmyarnwrappersteps.plugin.NPMBuildWrapper
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.tasks.BuildWrapper>
,java.io.Serializable
public class NPMBuildWrapper extends jenkins.tasks.SimpleBuildWrapper implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NPMBuildWrapper.DescriptorImplementation
-
Nested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
jenkins.tasks.SimpleBuildWrapper.Context, jenkins.tasks.SimpleBuildWrapper.Disposer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JENKINS_NPM_WORKSPACE_SUBDIRECTORY
static java.lang.String
JENKINS_NVM_SETUP_FOR_BUILD_S
static java.lang.String
JENKINS_YARN_SETUP_FOR_BUILD_S
-
Constructor Summary
Constructors Constructor Description NPMBuildWrapper(java.lang.String credentialsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCredentialsId()
java.lang.String
getWorkspaceSubdirectory()
boolean
isYarnEnabled()
void
setUp(jenkins.tasks.SimpleBuildWrapper.Context context, hudson.model.Run build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars envVars)
void
setWorkspaceSubdirectory(java.lang.String workspaceSubdirectory)
void
setYarnEnabled(boolean isYarnEnabled)
-
-
-
Field Detail
-
JENKINS_NPM_WORKSPACE_SUBDIRECTORY
public static final java.lang.String JENKINS_NPM_WORKSPACE_SUBDIRECTORY
- See Also:
- Constant Field Values
-
JENKINS_NVM_SETUP_FOR_BUILD_S
public static final java.lang.String JENKINS_NVM_SETUP_FOR_BUILD_S
- See Also:
- Constant Field Values
-
JENKINS_YARN_SETUP_FOR_BUILD_S
public static final java.lang.String JENKINS_YARN_SETUP_FOR_BUILD_S
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCredentialsId
public java.lang.String getCredentialsId()
-
getWorkspaceSubdirectory
public java.lang.String getWorkspaceSubdirectory()
-
setWorkspaceSubdirectory
@DataBoundSetter public void setWorkspaceSubdirectory(java.lang.String workspaceSubdirectory)
-
isYarnEnabled
public boolean isYarnEnabled()
-
setYarnEnabled
@DataBoundSetter public void setYarnEnabled(boolean isYarnEnabled)
-
setUp
public void setUp(jenkins.tasks.SimpleBuildWrapper.Context context, hudson.model.Run build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars envVars) throws java.io.IOException, java.lang.InterruptedException
- Overrides:
setUp
in classjenkins.tasks.SimpleBuildWrapper
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-