Azure Pipeline Build

  • Thread starter Thread starter GREESHMA K R
  • Start date Start date
G

GREESHMA K R

Guest
Hi,

I was unable to copy the .exe (executable) file after build succeeded. My requirement is to copy the source folder to my destination folder (in the local system). I have used the below code

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)/ConsoleApp1'
Contents: '**\*'

TargetFolder: 'C:'


##[section]Starting: CopyFiles
==============================================================================
Task : Copy files
Description : Copy files from a source folder to a target folder using patterns matching file paths (not folder paths)
Version : 2.158.0
Author : Microsoft Corporation
Help : Copy Files task - Azure Pipelines
==============================================================================
found 18 files
Copying d:\a\1\s\ConsoleApp1\App.config to C:\App.config
Copying d:\a\1\s\ConsoleApp1\bin\Debug\ConsoleApp1.exe to C:\bin\Debug\ConsoleApp1.exe
Copying d:\a\1\s\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config to C:\bin\Debug\ConsoleApp1.exe.config
Copying d:\a\1\s\ConsoleApp1\bin\Debug\ConsoleApp1.pdb to C:\bin\Debug\ConsoleApp1.pdb
Copying d:\a\1\s\ConsoleApp1\bin\Release\ConsoleApp1.exe to C:\bin\Release\ConsoleApp1.exe
Copying d:\a\1\s\ConsoleApp1\bin\Release\ConsoleApp1.exe.config to C:\bin\Release\ConsoleApp1.exe.config
Copying d:\a\1\s\ConsoleApp1\bin\Release\ConsoleApp1.pdb to C:\bin\Release\ConsoleApp1.pdb
Copying d:\a\1\s\ConsoleApp1\ConsoleApp1.csproj to C:\ConsoleApp1.csproj
Copying d:\a\1\s\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.FileListAbsolute.txt to C:\obj\Debug\ConsoleApp1.csproj.FileListAbsolute.txt
Copying d:\a\1\s\ConsoleApp1\obj\Debug\ConsoleApp1.csprojAssemblyReference.cache to C:\obj\Debug\ConsoleApp1.csprojAssemblyReference.cache
Copying d:\a\1\s\ConsoleApp1\obj\Debug\ConsoleApp1.exe to C:\obj\Debug\ConsoleApp1.exe
Copying d:\a\1\s\ConsoleApp1\obj\Debug\ConsoleApp1.pdb to C:\obj\Debug\ConsoleApp1.pdb
Copying d:\a\1\s\ConsoleApp1\obj\Release\ConsoleApp1.csproj.FileListAbsolute.txt to C:\obj\Release\ConsoleApp1.csproj.FileListAbsolute.txt
Copying d:\a\1\s\ConsoleApp1\obj\Release\ConsoleApp1.csprojAssemblyReference.cache to C:\obj\Release\ConsoleApp1.csprojAssemblyReference.cache
Copying d:\a\1\s\ConsoleApp1\obj\Release\ConsoleApp1.exe to C:\obj\Release\ConsoleApp1.exe
Copying d:\a\1\s\ConsoleApp1\obj\Release\ConsoleApp1.pdb to C:\obj\Release\ConsoleApp1.pdb
Copying d:\a\1\s\ConsoleApp1\Program.cs to C:\Program.cs
Copying d:\a\1\s\ConsoleApp1\Properties\AssemblyInfo.cs to C:\Properties\AssemblyInfo.cs
##[section]Finishing: CopyFiles




copying takes place. but, files not visible in that path.

Awaiting for your response.

Thanks,

Greeshma

Continue reading...
 
Back
Top