Trouble with build number.

Hello.
In my project I use an ability to set up build numer from buildscript, using "##teamcity[buildNumber '$(build_number)']" message. But when teamcity publishing artifacts, named build-%env.BUILD_NUMBER%.tar.gz, version is a simple iteration version from Build Counter field. I tried to use build.number and system.build.number variables, but got same result.
What's wrong?

4 comments
Comment actions Permalink

Hi Stas,
Did you ever get this resolved?  It would be cool if you could share your findings.

0
Comment actions Permalink

No, I have to do a workaround using ##teamcity[publishArifacts ] in my buildscript

0
Comment actions Permalink

Thank you for the fast reply, but that seems like a lot of work.

You basically do all the filtering, zipping and renaming locally and then just upload one artifact file at a time.  It does not seem like you can use things like this: "*.zip => winFiles" and have TeamCity do the filtering and zipping, right?

Thank you again,
Nils

0
Comment actions Permalink

Sorry for my english, my be I did not clearly understand your question.
I prepare whole artifact (tar.gz file) in my buildscript, and after that simply use publishArtifact directive to publish this file into TC artifacts. Name and content of this file I define in my buildscript, TC just upload it from agent to server and display as artifact. In my case it's not hardwork, because this artifact is just some files and folder with static content, without any triks.

0

Please sign in to leave a comment.