I've setup build configuration in TeamCity with 3 steps:
For FTP uploading I've used FTPUpload plugin, taken from http://teamcityrunners.codeplex.com/. Folder to upload was set to absolute path:
%userprofile%\.BuildServer\system\artifacts\%env.TEAMCITY_PROJECT_NAME%\%env.TEAMCITY_BUILDCONF_NAME%\%env.BUILD_NUMBER%\
According to build log, artifacts publishing take place only after all steps have been completed.
Is it possible to configure TeamCity to publish artifacts after certain build step?
We do something similar for one of my projects. We use 2 build configurations.
The first one builds the solution, runs unit tests and produces the artifacts.
The second build is set up with an Artifact Dependency on the last successful build. That means the second build will start out grabbing the artifacts from the first build. The second build would have a build step that uploads to the ftp site. The second build is setup with a Finish Build Trigger pointing to the first build. That will make it kick off whenever the first build finishes.
It's a bit more work this way, but once you have it setup it works pretty well.
If your aim is to upload artifacts to TeamCity server you do not need any external plugins, just fill in "Artifact paths" on the General Settings for the build configuration. Likewise, you can publish artifacts during the build via printing specially-formatted text into standard output, a "service message"
You will need the plugin mentioned only if you want to upload to some FTP, not related to TeamCity.
According to the above ticket, TW-1558 External artifact publishing (FTP, copy) There is a new plugin appears to fix this problem. (I have not used it.)
http://confluence.jetbrains.com/display/TW/Deployer+plugin In build configuration settings, new runners will be available for the build steps. New runners include:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With