Interface NpmAgentConfiguration


public interface NpmAgentConfiguration
The DSL extension for configuring the npm Develocity build agent, when npm is called from within a Gradle build.

Usage example:


 tasks.register("npmInstallWithAgent", Exec) {
   environment.putAll(develocity.integration.npm.environment.get())
   commandLine("npm", "install")
 }
 
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Access the environment variables used to pass information from the Gradle plugin to the Develocity npm build agent.
  • Method Details

    • getEnvironment

      Provider<Map<String,String>> getEnvironment()
      Access the environment variables used to pass information from the Gradle plugin to the Develocity npm build agent.

      These variables should be injected into tasks that run npm from the command line.

      Usage example:

      
       tasks.register("npmInstallWithAgent", Exec) {
         environment.putAll(develocity.integration.npm.environment.get())
         commandLine("npm", "install")
       }
       
      Since:
      4.0