Skip to content

[BUG]: Copy files over SSH not displaying the detailed output #20847

Open
@Nitesh-kumar-Reddy

Description

@Nitesh-kumar-Reddy

New issue checklist

Task name

CopyFilesOverSSH@0

Task version

0.246.3

Issue Description

A bug happened!
I'm using CopyFilesOverSSH@0 , after running the pipeline not getting the output what files have been copied and i tried running the debug as true still it is not showing the files copied
Below is the issue pipeline log
Starting: Copy files over SSH

Task : Copy files over SSH
Description : Copy files or build artifacts to a remote machine over SSH
Version : 0.246.3
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 "*******"
Finishing: Copy files over SSH

Expected output:
Starting: Copy files over SSH

Task : Copy files over SSH
Description : Copy files or build artifacts to a remote machine over SSH
Version : 0.246.3
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"**"
Found 1 files to copy to the remote machine.
Created folder /test/test1/cic/IN on the remote machine.
Created 1 folders on the remote machine.
Copying file /agent/_work/39/a/diffFolder/diff_files.zip to /test/test1/cic/IN /diff_files.zip on remote machine.
Finishing: Copy files over SSH

Above is the correct ouptur ,But I'm not getting the expected output, Both task are using the same task and version for one pipeline I'm getting expected output and other pipeline is not showing the detailed output like expected output .kindly help

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

ubuntu

Relevant log output

Starting: Copy files over SSH
==============================================================================
Task         : Copy files over SSH
Description  : Copy files or build artifacts to a remote machine over SSH
Version      : 0.246.3
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 "*******"
Finishing: Copy files over SSH

Full task logs with system.debug enabled

2025-02-11T13:48:30.2408445Z ##[debug]Evaluating condition for step: 'Copy files over SSH'
2025-02-11T13:48:30.2409934Z ##[debug]Evaluating: SucceededNode()
2025-02-11T13:48:30.2410606Z ##[debug]Evaluating SucceededNode:
2025-02-11T13:48:30.2411379Z ##[debug]=> True
2025-02-11T13:48:30.2411866Z ##[debug]Result: True
2025-02-11T13:48:30.2412375Z ##[section]Starting: Copy files over SSH
2025-02-11T13:48:30.2425292Z ==============================================================================
2025-02-11T13:48:30.2425538Z Task : Copy files over SSH
2025-02-11T13:48:30.2425659Z Description : Copy files or build artifacts to a remote machine over SSH
2025-02-11T13:48:30.2425848Z Version : 0.246.3
2025-02-11T13:48:30.2425964Z Author : Microsoft Corporation
2025-02-11T13:48:30.2426132Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/copy-files-over-ssh
2025-02-11T13:48:30.2426307Z ==============================================================================
2025-02-11T13:48:30.3993448Z ##[debug]Using node path: /agent/externals/node20_1/bin/node
2025-02-11T13:48:30.5553333Z ##[debug]system.debug=True
2025-02-11T13:48:30.5557904Z ##[debug]DistributedTask.Tasks.Node.SkipDebugLogsWhenDebugModeOff=True
2025-02-11T13:48:30.5594198Z ##[debug]agent.TempDirectory=/agent/_work/_temp
2025-02-11T13:48:30.5598388Z ##[debug]loading inputs and endpoints
2025-02-11T13:48:30.5608582Z ##[debug]loading INPUT_SSHENDPOINT
2025-02-11T13:48:30.5631984Z ##[debug]loading INPUT_SOURCEFOLDER
2025-02-11T13:48:30.5635016Z ##[debug]loading INPUT_CONTENTS
2025-02-11T13:48:30.5639080Z ##[debug]loading INPUT_TARGETFOLDER
2025-02-11T13:48:30.5642481Z ##[debug]loading INPUT_ISWINDOWSONTARGET
2025-02-11T13:48:30.5646100Z ##[debug]loading INPUT_CLEANTARGETFOLDER
2025-02-11T13:48:30.5648462Z ##[debug]loading INPUT_CLEANHIDDENFILESINTARGET
2025-02-11T13:48:30.5653733Z ##[debug]loading INPUT_READYTIMEOUT
2025-02-11T13:48:30.5656458Z ##[debug]loading INPUT_OVERWRITE
2025-02-11T13:48:30.5737511Z ##[debug]loading INPUT_FAILONEMPTYSOURCE
2025-02-11T13:48:30.5739666Z ##[debug]loading INPUT_FLATTENFOLDERS
2025-02-11T13:48:30.5740993Z ##[debug]loading INPUT_CONCURRENTUPLOADS
2025-02-11T13:48:30.5742356Z ##[debug]loading INPUT_DELAYBETWEENUPLOADS
2025-02-11T13:48:30.5743712Z ##[debug]loading ENDPOINT_AUTH_412705c7-7012-48e8-90c8-eaae9ed94f4a
2025-02-11T13:48:30.5745195Z ##[debug]loading ENDPOINT_AUTH_SCHEME_412705c7-7012-48e8-90c8-eaae9ed94f4a
2025-02-11T13:48:30.5746644Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_412705c7-7012-48e8-90c8-eaae9ed94f4a_USERNAME
2025-02-11T13:48:30.5748110Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_412705c7-7012-48e8-90c8-eaae9ed94f4a_PASSWORD
2025-02-11T13:48:30.5749543Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2025-02-11T13:48:30.5750903Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2025-02-11T13:48:30.5752394Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2025-02-11T13:48:30.5753755Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2025-02-11T13:48:30.5755027Z ##[debug]loaded 21
2025-02-11T13:48:30.5756348Z ##[debug]Agent.ProxyUrl=undefined
2025-02-11T13:48:30.5757722Z ##[debug]Agent.CAInfo=undefined
2025-02-11T13:48:30.5759031Z ##[debug]Agent.ClientCert=undefined
2025-02-11T13:48:30.5760484Z ##[debug]Agent.SkipCertValidation=undefined
2025-02-11T13:48:30.6384524Z ##[debug]Feature flag COPYFILESOVERSSHV0_USE_QUEUE = true
2025-02-11T13:48:30.6387429Z ##[debug]check path : /agent/_work/_tasks/CopyFilesOverSSH_67cec91b-0351-4c2f-8465-d74b3d2a2d96/0.246.3/task.json
2025-02-11T13:48:30.6448052Z ##[debug]adding resource file: /agent/_work/_tasks/CopyFilesOverSSH_67cec91b-0351-4c2f-8465-d74b3d2a2d96/0.246.3/task.json
2025-02-11T13:48:30.6471711Z ##[debug]system.culture=en-US
2025-02-11T13:48:30.6473967Z ##[debug]sshEndpoint=*****
2025-02-11T13:48:30.6476475Z ##[debug]412705c7-7012-48e8-90c8-eaae9ed94f4a auth param username = ***
2025-02-11T13:48:30.6479173Z ##[debug]412705c7-7012-48e8-90c8-eaae9ed94f4a auth param password = ***
2025-02-11T13:48:30.6670361Z ##[debug]412705c7-7012-48e8-90c8-eaae9ed94f4a data host = ****
2025-02-11T13:48:30.6680338Z ##[debug]412705c7-7012-48e8-90c8-eaae9ed94f4a data port = 22
2025-02-11T13:48:30.6682998Z ##[debug]readyTimeout=20000
2025-02-11T13:48:30.6684997Z ##[debug]concurrentUploads=10
2025-02-11T13:48:30.6687041Z ##[debug]Using private key for ssh connection.
2025-02-11T13:48:30.6690109Z ##[debug]contents=**
2025-02-11T13:48:30.6694130Z ##[debug]sourceFolder=/agent/_work/71/s//
2025-02-11T13:48:30.6696380Z ##[debug]check path : /agent/_work/71/s/
/
2025-02-11T13:48:30.6698480Z ##[debug]targetFolder=***
2025-02-11T13:48:30.6700673Z ##[debug]cleanTargetFolder=false
2025-02-11T13:48:30.6702610Z ##[debug]overwrite=true
2025-02-11T13:48:30.6704581Z ##[debug]failOnEmptySource=false
2025-02-11T13:48:30.6706520Z ##[debug]flattenFolders=false
2025-02-11T13:48:30.6707804Z Setting up SSH service connection to remote host *****
2025-02-11T13:48:32.8938689Z ##[debug]Agent environment resources - Disk: / Available 91741.61 MB out of 198297.42 MB, Memory: Used 1098.00 MB out of 7929.00 MB, CPU: Usage 29.78%
2025-02-11T13:48:33.3772683Z ##[debug]Upload a directory to a remote machine
2025-02-11T13:48:33.3776274Z ##[debug]Upload /agent/_work/71/s/***/ to *** on remote machine.
2025-02-11T13:48:34.1267585Z ##[debug]task result: Succeeded
2025-02-11T13:48:34.1275394Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]Completed copying *** directory to the remote machine.
2025-02-11T13:48:34.1279435Z ##[debug]Closing the client connection
2025-02-11T13:48:34.2458621Z ##[section]Finishing: Copy files over SSH

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions