/* * (non-Javadoc) * * @see * jenkins.plugins.shiningpanda.command.Command#getEnvironment(hudson.FilePath * , hudson.EnvVars) */ @Override protected EnvVars getEnvironment(FilePath pwd, EnvVars environment) { // Check if conversion required if (!convert) // If not required return the environment directly return environment; // Get a new one environment = new EnvVars(environment); // Add the working directory in the path so `./` are useless on UNIX environment.override("PATH+", pwd.getRemote()); // Return the environment return environment; }