Custom tool not downloaded by agents

Answered

Hello,

I'd like to create a tool built around CPD and PMD.

I created a ZIP archive with the following structure:

pmd.zip

  |  teamcity-plugin.xml

  |  bin

     |  cpd.bat

     |  pmd.bat

  |  lib

     | All jar files

 

The file teamcity-plugin,xml contains the following structure:

  <?xml version="1.0" encoding="UTF-8" ?>
<teamcity-agent-plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:schemas-jetbrains-com:teamcity-agent-plugin-v1-xml">
<tool-deployment>
<layout>
<executable-files>
  <include name="bin/cpd.bat" />
  <include name="bin/pmd.bat" />
  </executable-files>
  </layout>
  </tool-deployment>
  </teamcity-agent-plugin>
 
I can successfully upload the zip in the tools section of the administration of the server. (no errors are displayed, and it appears in the list)
 
My connected agent then automatically restarts, but I can find no trace of the tool in the folder tools (alongside the ant-net-tasks, gant, and jps tools)
 
I looked in the logs of both the server and the client, but I did not see any errors.
 
Am I missing anything?
0
2 comments

Starting from 2019.1 version (here is What's new) tools will be downloaded on the agent only when they needed. So, in your case, you need to reference them with %teamcity.tool.pmd% parameter and the tool will be downloaded during a build if it is absent on an agent. 

0

Ah cool ! Thanks for the info

0

Please sign in to leave a comment.