none
Pipeline Issue - Build objects not found in release 'Copy Files' task. RRS feed

  • Question

  • Need help getting files to a internally hosted VM.

    Setting

    • The agent is running on the internally hosted VM. It is registered and visible in Azure DevOps.
    • The source code is stored in an Azure GIT repo.
    • A pipeline has been created that successfully builds.
    • A release has been created that runs successfully, but it does not find the objects created during the build.
    • The release has a Copy Files task

    Build yaml

    # .NET Desktop
    # Build and run tests for .NET Desktop or Windows classic desktop solutions.
    # Add steps that publish symbols, save build artifacts, and more:
    # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
    trigger:
    - master
    pool:
    vmImage: 'VS2017-Win2016'
    variables:
    solution: '**/*.sln'
    buildPlatform: 'Any CPU'
    buildConfiguration: 'Release'
    steps:
    - task: NuGetToolInstaller@0
    - task: NuGetCommand@2
    inputs:
    restoreSolution: '$(solution)'
    - task: VSBuild@1
    inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'
    - task: VSTest@2
    inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

    Release CopyFiles Task yaml

    steps:

    - task: CopyFiles@2

      displayName: 'Copy Files to: CwwApp1598d'

      inputs:

        Contents: '**\*'

        TargetFolder: '$(Build.ArtifactStagingDirectory)'


    Build log

    ##[section]Starting: VSBuild
    ==============================================================================
    Task : Visual Studio Build
    Description : Build with MSBuild and set the Visual Studio version property.
    Version : 1.148.1
    Author : Microsoft Corporation
    Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
    ==============================================================================
    ##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.148.1\ps_modules\MSBuildHelpers\vswhere.exe" -version [16.0,17.0) -latest -format json
    ##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.148.1\ps_modules\MSBuildHelpers\vswhere.exe" -version [16.0,17.0) -products Microsoft.VisualStudio.Product.BuildTools -latest -format json
    ##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.148.1\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
    ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "D:\a\1\s\WindowsApp1.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.148.1\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=4f8d2b7d-83e6-416d-b94f-ba116bb14295|SolutionDir=D:\a\1\s"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.148.1\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="Any CPU" /p:configuration="Release" /p:VisualStudioVersion="15.0" /p:_MSDeployUserAgent="VSTS_d394a2fe-7278-49ff-82dc-130c40bf5f93_build_1_0"
    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 3/30/2019 2:41:45 PM.
    Project "D:\a\1\s\WindowsApp1.sln" on node 1 (default targets).
    ValidateSolutionConfiguration:
    Building solution configuration "Release|Any CPU".
    Project "D:\a\1\s\WindowsApp1.sln" (1) is building "D:\a\1\s\WindowsApp1.vbproj" (2) on node 1 (default targets).
    PrepareForBuild:
    Creating directory "bin\Release\".
    Creating directory "obj\Release\".
    GenerateBindingRedirects:
    No suggested binding redirects from ResolveAssemblyReferences.
    CoreResGen:
    "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\resgen.exe" /useSourcePath /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Core.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.DataSetExtensions.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Deployment.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Drawing.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Windows.Forms.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.Linq.dll" /compile Form1.resx,obj\Release\WindowsApp1.Form1.resources "My Project\Resources.resx",obj\Release\WindowsApp1.Resources.resources
    Processing resource file "Form1.resx" into "obj\Release\WindowsApp1.Form1.resources".
    Processing resource file "My Project\Resources.resx" into "obj\Release\WindowsApp1.Resources.resources".
    CoreCompile:
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Drawing,System.Diagnostics,System.Windows.Forms,System.Linq,System.Xml.Linq,System.Threading.Tasks /optioncompare:Binary /optionexplicit+ /optionstrict:custom /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /optioninfer+ /nostdlib /platform:anycpu32bitpreferred /rootnamespace:WindowsApp1 /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1" /highentropyva+ /doc:obj\Release\WindowsApp1.xml /define:"CONFIG=\"Release\",TRACE=-1,_MyType=\"WindowsForms\",PLATFORM=\"AnyCPU\"" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Core.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.DataSetExtensions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Deployment.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Drawing.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Windows.Forms.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.Linq.dll" /main:WindowsApp1.My.MyApplication /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\WindowsApp1.exe /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /resource:obj\Release\WindowsApp1.Form1.resources /resource:obj\Release\WindowsApp1.Resources.resources /target:winexe /utf8output /deterministic+ Form1.vb Form1.Designer.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" "C:\Users\VssAdministrator\AppData\Local\Temp\.NETFramework,Version=v4.6.1.AssemblyAttributes.vb"
    Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
    _CopyAppConfigFile:
    Copying file from "App.config" to "bin\Release\WindowsApp1.exe.config".
    CopyFilesToOutputDirectory:
    Copying file from "obj\Release\WindowsApp1.exe" to "bin\Release\WindowsApp1.exe".
    WindowsApp1 -> D:\a\1\s\bin\Release\WindowsApp1.exe
    Copying file from "obj\Release\WindowsApp1.pdb" to "bin\Release\WindowsApp1.pdb".
    Copying file from "obj\Release\WindowsApp1.xml" to "bin\Release\WindowsApp1.xml".
    Done Building Project "D:\a\1\s\WindowsApp1.vbproj" (default targets).
    Done Building Project "D:\a\1\s\WindowsApp1.sln" (default targets).
    Build succeeded.
    0 Warning(s)
    0 Error(s)
    Time Elapsed 00:00:28.14
    ##[section]Finishing: VSBuild

    Release Log:

    2019-03-31T00:08:11.3392072Z ##[section]Starting: Copy Files to: CwwApp1598d
    2019-03-31T00:08:11.3492679Z ==============================================================================
    2019-03-31T00:08:11.3493331Z Task : Copy Files
    2019-03-31T00:08:11.3493454Z Description : Copy files from source folder to target folder using match patterns (The match patterns will only match file paths, not folder paths)
    2019-03-31T00:08:11.3493536Z Version : 2.117.2
    2019-03-31T00:08:11.3493664Z Author : Microsoft Corporation
    2019-03-31T00:08:11.3494301Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708389)
    2019-03-31T00:08:11.3494420Z ==============================================================================
    2019-03-31T00:08:11.6026678Z found 0 files
    2019-03-31T00:08:11.6028534Z ##[section]Finishing: Copy Files to: CwwApp1598d

    Tuesday, April 2, 2019 1:39 PM

Answers

All replies