Hi,
Following the instructions given here, I am running following executions at some point in my Bitbucket Pipeline:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
However the build fails with following error:
+ sudo mv ./kubectl /usr/local/bin/kubectl
bash: sudo: command not found
Why? Any hint? Thanks in advance.
Cheers and have a nice one,
christian
which sudo
Output is something like this: /usr/bin/sudo
Try providing the full path to the sudo command
I've found out that I actually do NOT need sudo. It seems that I'm already root. Thanks and cheers,
christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Probably not a good idea, but thats your decicion.
Please mark question as solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.