Why is the AWS CLI not working with the EnvInject plugin?

Article ID:204958650
1 minute readKnowledge base

Issue

I installed the AWS CLI plugin. When I attempt to use 'aws' from a shell script I get a command not found error.

Environment

  • AWS CLI job configuration

  • EnvInject Plugin

Resolution

The EnvInject plugin is known to cause troubles with the PATH of the jobs.

Adding ${home}/.local/bin to the PATH is the right workaround if you have installed the EnvInject plugin.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.