Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopyFilesOverSSH fails in KornShell (ksh) #13108

Closed
johan-ejstrud opened this issue Jun 12, 2020 · 3 comments
Closed

CopyFilesOverSSH fails in KornShell (ksh) #13108

johan-ejstrud opened this issue Jun 12, 2020 · 3 comments
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug Task: CopyFilesOverSSH

Comments

@johan-ejstrud
Copy link

Question, Bug, or Feature?
Type: Bug

Enter Task Name: CopyFilesOverSSH

Issue Description

CopyFilesOverSSH fails when copying to server running ksh:

==============================================================================
Task         : Copy files over SSH
Description  : Copy files or build artifacts to a remote machine over SSH
Version      : 0.170.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/copy-files-over-ssh
==============================================================================
Setting up SSH service connection to remote host 10.1.22.16.
Cleaning target folder /z/falcon/projstat/general/toolpool/bos_test/UserStory82468 on the remote machine
##[error]ksh: bash:  not found

##[error]Failed to clean the target folder on the remote machine. Command bash -c "rm -rf '/path/to/dir'/*" exited with code 1.

I guess it will fail for any *nix sever that runs a shell other than bash.

The bug was introduced in #12849 which explicitly added bash as the name of the *nix shell.

@github-actions github-actions bot added Area: ABTT Akvelon Build Tasks Team area of work bug labels Jun 12, 2020
@johan-ejstrud
Copy link
Author

Hey @egor-bryzgalov and @damccorm do you know if I can somehow revert to using version 0.169.2 of CopyFileOverSSH?

@damccorm
Copy link

@johan-ejstrud there's not a way to pin to older versions of a task. This should be fixed by https://github.com/microsoft/azure-pipelines-tasks/pull/13105/files

@johan-ejstrud
Copy link
Author

Thanks @damccorm! I'll close this issue once #13105 is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug Task: CopyFilesOverSSH
Projects
None yet
Development

No branches or pull requests

3 participants