I can't seem to be able to put the trackingtool element in the pipeline template, so I have to replicate for each pipeline. Is there a special way to do this and are there any other elements that can't be templated? Or have I just mistyped something?
<pipeline name="PhoenixdOracleTrunk" labeltemplate="3.3.0.${COUNT}" template="oracle_build">
<trackingtool link="http://mingle/projects/phoenix/cards/${ID}" regex="#(\d+)" />
<materials>
<svn url="svn://pclsrc/DB/Trunk" username="Build" password="password" dest="Oracle" />
</materials>
</pipeline>
<pipeline name="PhoenixdOracleBranch" labeltemplate="3.4.0.${COUNT}" template="oracle_build">
<trackingtool link="http://mingle/projects/phoenix/cards/${ID}" regex="#(\d+)" />
<materials>
<svn url="svn://pclsrc/DB/Branches/Phoenix/HTC/Phase_3_2/branch_0_0_0_19" username="Build" password="password" dest="Oracle" />
</materials>
</pipeline>
<pipeline name="IntegrationTest" labeltemplate="${PhoenixdotNETBUILD}">
<trackingtool link="http://mingle/projects/phoenix/cards/${ID}" regex="#(\d+)" />
<materials>
<pipeline pipelineName="PhoenixOracleTrunk" stageName="build" />
</materials><templates>
<pipeline name="oracle_build">-Tried pasting trackingtool in here but complained it was expecting Stage...
<stage name="build">
<approval type="manual" />
<jobs>
<job name="FetchOracleJob">
<tasks>
<exec command="svn" args="commit -m '[PCLGO Build Server] - Updated version to %GO_PIPELINE_LABEL% following successful build' />
</tasks>
<artifacts>
<artifact src="Oracle/*" dest="DBrelease" />
</artifacts>
</job>
</jobs>
</stage>
</pipeline>
</templates>
Comments
2 comments
Hi Ian,
Creating a dependency to a templatized pipeline is definitely possible. I think the issue might be elsewhere in the config. What's the error message you're getting? Could you also attach the full <pipelines> and <templates> sections of your config as an attachment in your response.
Hi Anush
Sorry for the confusion, I figured out my origianl problem, in the name of the pipeline was mispelt, but the error about the stage led me to think that the stage was not being recognised due to me changing the pipeline to a template. Anyway that is all ok now, I am just curious as to the trackingtool element not seemingly able to be placed in the template. Again i could be doing something wrong.
Please sign in to leave a comment.