Aditya Bokade
Aditya Bokade

Reputation: 1786

TFS 2015 Artifacts always empty upon build

I have created build definition which runs successfully. Now I want to create a release definition on the successful build, for which it is asking for artifacts.

When I tried browsing "Drop" folder, I found it empty.

Below are the images from Copy Files step and Publish build artifacts step.

I also tried instructions from The item MY_ARTIFACT_NAME in container XXX could not be found But no luck. Please help.

enter image description here

enter image description here

Upvotes: 1

Views: 693

Answers (1)

Justin
Justin

Reputation: 86799

I believe that you should use $(build.sourcesdirectory) (or a path relative to) as the source folder if you want to copy files which are not checked in.

Also, from the documentation of the Copy Files step

The pattern is used to match only file paths, not folder paths. So you should specify patterns such as **\bin\** instead of of **\bin.

Try changing the contents pattern to **\bin\** and see if that helps.

Upvotes: 1

Related Questions