Pellared
Pellared

Reputation: 1292

TFS 2015 Copy and Publish Build Artifacts without subdirectories

I have created a Copy and Publish Build Artifacts build step in TFS 2015 with the following parameters:

The according to https://www.visualstudio.com/pl-pl/docs/build/steps/utility/copy-and-publish-build-artifacts it should not copy the subdirecttories but unfortunately it does it!

How to copy and publish build artifacts whitout subfolders?

Upvotes: 2

Views: 1767

Answers (2)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29958

You can use **.* instead of **.

Upvotes: 0

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31003

Please add the suffix of the files after **, then you won't get the subdirectories. For example, in the following setting, you'll only get .txt and .dll files under $(build.sourcesdirectory)\bin\Installers, but you won't get .txt and .dll files in any sub folders under $(build.sourcesdirectory)\bin\Installers:

enter image description here

Upvotes: 1

Related Questions