Interface PythonAgentConfiguration


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

Usage example:


 tasks.register("pipInstallWithAgent", Exec) {
   environment.putAll(develocity.integration.python.environment.get())
   commandLine("pip", "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 Python 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 Python build agent.

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

      Usage example:

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