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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.