Usually I install
jenkins user should also have access to Drush to run the build. So, instead of installing it again for
jenkins I was looking for a solution where all the users in the system can have the benfits of Drush. Still, Composer is the best way to do it with some minor tweaks.
First, install Composer globally:
Next, symlink to System-wide binary
Then, clone the Drush git repository and place in
/usr/local/src to install. Create a symlink of the
src folder to the binary
Now when you do
drush --version you will get the Latest Drush version which is same for all the users in the system.