Deployer plugin vs TC 8.0.2, status alfa, alternatives?
Hi!
Has anyone been sucessfully using http://confluence.jetbrains.com/display/TW/Deployer+plugin on TC 8.0.2? I'm going to try this myself, and would love to know any bad&good experience others might have had already.
I'm also a bit concerned about the "Status alfa" notice on the plugin's page. That doesn't sound encouraging :). Does it mean I should expect crashes, data loss or some other nice things like these?
Do you know any alternative ways for uploading TC build artifacts using SCP?
Please sign in to leave a comment.
Hello John,
About "alfa" notice on the plugins page. It means that plugin is not mature and stable enough to call it "beta". It was not tested throughout, data formats may change, features can be removed without notice.
Plugin successfully handles basic scenarious, some bugs were already reported and fixed. Though deployment process ifself may fail, the plugin is very unlikely to cause full-scale server crash, agents shutdown or data loss. In case of bugs, feel free to report them to TeamCity issue tracker at http://youtrack.jetbrains.net/issues/TW
Simpliest alternative with SCP capabilities would be Ant Scp task: http://ant.apache.org/manual/Tasks/scp.html - but you will need to create build.xml file and store it in your VCS.
Good luck!
Nikita,
Thanks, this clarifies much. Before going the deployer plugin way, I wanted to give the simple Ant SCP task a try. I would rather avoid installing any extra stuff unless really needed.
I selected "Ant" for the "Runner type" and put the following into the "Build file content" field (I guess this is as good as having a build.xml in source control?):
<?xml version="1.0"?>
<project name="quick-ant-upload" default="upload" basedir=".">
<target name="upload">
<scp todir="myuser@my.host.com:/path/to/a/dir/"
verbose="true"
password="mypasswd"
file="plik.txt"
trust="yes">
</scp>
</target>
</project>
Such a build step fails with a following information:
The problem seems to be the a missing com/jcraft/jsch/Logger class. I have ant-jsch.jar in C:\BuildAgent\plugins\ant\lib, as it came with the TC installation, but it does not contain such class. Is TC 8.0.2 lacking some jars maybe?
John,
I believe, the error message speaks for itself: Teamcity bundles standart ant distribution that does not contain optional tasks' dependencies, you will have to download them manually.
JSch from http://www.jcraft.com/jsch/index.html is the missing bit.
BTW, does your Deployer plugin depend on it too?
Deployer plugin bundles all required libraries. You will not have to install anything but the plugin itself.