Class RemoteBuildResultEnvironmentContributor

    • Constructor Detail

      • RemoteBuildResultEnvironmentContributor

        public RemoteBuildResultEnvironmentContributor()
    • Method Detail

      • buildEnvironmentFor

        public void buildEnvironmentFor​(@NonNull
                                        Job j,
                                        @NonNull
                                        EnvVars envs,
                                        @NonNull
                                        TaskListener listener)
                                 throws IOException,
                                        InterruptedException
        Contributes environment variables used for a job.

        This method can be called repeatedly for the same Job, thus the computation of this method needs to be efficient.

        This method gets invoked concurrently for multiple Jobs, so it must be concurrent-safe.

        Overrides:
        buildEnvironmentFor in class EnvironmentContributor
        Parameters:
        j - Job for which some activities are launched.
        envs - Partially built environment variable map. Implementation of this method is expected to add additional variables here.
        listener - Connected to the build console. Can be used to report errors.
        Throws:
        IOException
        InterruptedException
        Since:
        1.527