I have a problem to give the output path for build content

I used comman line runner type in build steps and my commands are

cd D:\MCSDemo\MCStest\MCS
dnvm list
dnvm use 1.0.0-rc1-update2
dnu build
cd D:\MCSDemo\MCStest\MCS
dnu publish -o "c:\mcs_published_content1"

The build ran successfully. but i didnot get the build content in my given path c:\mcs_published_content1.

I have tried many way but still cant find.

please give me a suggestion

0
1 comment

Hi,

 

I'm afraid that with this information it's hard for us to know. If those same set of commands work in your dev environment and fail in teamcity, please do the following:

-Log in into the agent machine with the same user that runs the build agent process.

-CD into the working directory of the build

-Try to run the same set of commands.

 

If doing it exactly this way (it's important to log in with the same user and run it under the exact same conditions), it might be that our command line runner is altering the environment just enough for it not to work, but this situation is extremely rare, in most scenarios it's just an issue of something missing in your environment.

 

As a side note, is there any specific reason for you to run this as a command line runner rather than using the regular dotnet runner?

0

Please sign in to leave a comment.