Class 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
      • Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper

        hudson.tasks.BuildWrapper.Environment
      • Nested classes/interfaces inherited from interface hudson.ExtensionPoint

        hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
    • 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)  
      • Methods inherited from class jenkins.tasks.SimpleBuildWrapper

        createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUp
      • Methods inherited from class hudson.tasks.BuildWrapper

        all, getProjectAction, setUp
      • Methods inherited from class hudson.model.AbstractDescribableImpl

        getDescriptor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • NPMBuildWrapper

        @DataBoundConstructor
        public NPMBuildWrapper​(java.lang.String credentialsId)
    • 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 class jenkins.tasks.SimpleBuildWrapper
        Throws:
        java.io.IOException
        java.lang.InterruptedException