Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ssh-task shows command not found while running on connected server Edited

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?

 

1 answer

0 votes

Hi @kswati,

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:

$ env


Suggestion for troubleshooting

  1. Check if you are able to run the command you need without Bamboo, but sending it through an ssh command line as the command above for 'env'.
  2. If you experience the same problem the reason might be a missing environment variable. In this case you will need to source the variable in the SSH command or add the full path to executable.
  3. In case you don't reproduce the problem, please send us the SSH task details so we can check them,

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

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...

967 views 0 16
Read article

Community Events

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

Events near you