Renaming Artifacts

Hi
A question about artifact paths:

How can I rename the filename of an artifact? For example, my project creates an executable called "my_app.exe". I want to add it to the artifact path, but, I want to modify the name of the file to include the build number.

So, ideally, something like this in the "Artifact paths" dialogue:

/**/my_app.exe => my_app_%build.number%.exe


However, all this does is create a parent directory called "my_app_<build.number>.exe", with "my_app.exe" inside of it.

Any suggestions?

thanks
Michael

2 comments
Comment actions Permalink

Michael,

So far there is no way to rename artifacts on publishing. Current approach suggests preparing artifacts with the right names inside the build (e.g. in a separate build step) and then publishing them as is.

You can create a feature request in our tracker for renamings, if you like.

0
Comment actions Permalink

Yegor
Thanks for the response. Using a separate build step in my nant file is the approach I ended up using. It should work fine for what I need to do, now

thanks
Michael

0

Please sign in to leave a comment.