How can I get a EXE file bundled into a TeamCity agent?

Hello,

I'm attempting my first TeamCity plugin, within which I want the plugin to execute a standalone .NET core EXE application.

I have my compiled my working EXE files for my .NET core application, and I now want to bundle that into the TeamCity agent.

My plan is for the build agent to execute the appropriate EXE application, which will call various APIs and generate a log report.  This log report will then get added as a custom report within the build artefacts and displayed as an additional tab for each project build executed (as per this example project covered via YouTube - https://www.youtube.com/watch?v=M_ip2u-o9zY&t=420s).

I have searched high and low, but I have not found anything that details how to get a set of additional, standalone, files (from my .NET core project) bundled into the TeamCity plugin.  Right now I'm trying to dissect other open source TeamCity plugin projects such as Octopus Deploy, but that is taking me some time to figure out.  

Any pointers or existing examples would be appreciated!

Thanks, Ben

2 comments
Comment actions Permalink

Hi, you can include the binary right into the plugin distribution, see the Snyk plugin as an example: https://github.com/snyk/teamcity-snyk-security-plugin 

0
Comment actions Permalink

Hi Dmitry,

I've been looking into this, but as yet no luck.

Would it be possible to package up a ZIP file as a dependency, and get this unpacked as a plugin tool?

I've checked without any luck - is there any official documentation you can point me towards?

Thanks, Ben

0

Please sign in to leave a comment.