Nuget Publish

Hi, 

I'm trying to publish all .nupkg in the builds artifact folder using the following statement

E:\ProgramData\JetBrains\TeamCity\system\artifacts\%env.TEAMCITY_PROJECT_NAME%\%env.TEAMCITY_BUILDCONF_NAME%\%build.counter%\**/*.nupkg

But the build counter is does not reflect the folder that is storing all the latest artifact e.g. build counter is reporting 704 but the folder is named 781.

Is my statement correct or is there a better way to do this?

0
1 comment

Hi,

What version of TeamCity do you use?

Please check the values of the build.counter and build.number parameters of the build in the parameters tab of the build overview page? Do you see correct values there? 

I think the easiest way is to use "Publish created packages to build artifacts" option of the Nuget pack build step.

0

Please sign in to leave a comment.