0

I want to publish two folders using TeamCity build artifacts. I edited the artifacts path in general settings of the project as

%system.teamcity.build.checkoutDir%/module1/build/output
%system.teamcity.build.checkoutDir%/module2/build/output

But I am getting only one folder as build artifacts. How can I solve this.

Nevin Raj Victor
  • 2,924
  • 3
  • 23
  • 37

1 Answers1

1

Try changing your artifacts path to move the artifacts to explicit paths within the artifacts directory.
For example:

%system.teamcity.build.checkoutDir%/module1/build/output => Module1Output
%system.teamcity.build.checkoutDir%/module2/build/output => Module2Output

Make sure they're separated by a new line.

Nanhydrin
  • 4,332
  • 2
  • 38
  • 51
  • If you look at the bottom of the build log in the Publishing Artifacts section, can you see any mention of module1, hopefully an error? What does your Artifact paths configuration look like now? – Nanhydrin Apr 21 '15 at 15:23
  • Yes the error was like `module1/build/output` not found. The path was `outputs` and not `output`. Now I corrected it and got it right. – Nevin Raj Victor Apr 22 '15 at 04:48