Class NpmTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<B,P>
com.atlassian.bamboo.specs.builders.task.BaseNodeTask<NpmTask,NpmTaskProperties>
com.atlassian.bamboo.specs.builders.task.NpmTask
Represents task that executes an npm command.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull NpmTaskProperties
build()
Sets which command to execute, e.g.boolean
int
hashCode()
useIsolatedCache
(boolean useIsolatedCache) Sets whether the npm task should use isolated directory for caches.Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
NpmTask
public NpmTask()
-
-
Method Details
-
command
Sets which command to execute, e.g.install
. -
useIsolatedCache
Sets whether the npm task should use isolated directory for caches. Should be enabled when different incompatible versions of npm may be used on one Bamboo agent. Defaults to false. -
build
- Specified by:
build
in classTask<NpmTask,
NpmTaskProperties>
-
equals
- Overrides:
equals
in classBaseNodeTask<NpmTask,
NpmTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseNodeTask<NpmTask,
NpmTaskProperties>
-