Thank you for the feedback! I updated the blog post with your suggestions. The script is now safely stored in
/opt which is owned by
root so the
jenkins user cannot modify it or swap it out. Additionally I updated the script to use
set -x instead of duplicating the commands for echoing.
If anyone out there is curious about seeing my workflow to make and test this change, I did a screen recording:
Leave the first remark and get the conversation going!