I am using ssh-task in deployment job, this ssh-task is connected to server with ubuntu user where kubectl command are running.
When I am running same command directly on server, it working but when I am running it using job its showing command not found.
Is this due to ssh-task?
It is possible that your problem is not Bamboo related but a constraint on how an SSH command is run.
A command running with SSH does not get the same environment variables as if it was run with a logged in user on terminal. The reason is that we have a non-interactive terminal instead of an interactive one.
You should see completely different results from
Env as and SSH command:
$ ssh user@localhost 'env'
Env from terminal:
Suggestion for troubleshooting
G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events