Skip to content

Instantly share code, notes, and snippets.

@manojlds
Created March 6, 2012 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manojlds/1989334 to your computer and use it in GitHub Desktop.
Save manojlds/1989334 to your computer and use it in GitHub Desktop.
Go pipeline Templates
<pipeline name="deploy-to-sandbox-master" template="deploy-template">
<params>
<param name="BUILD_PIPELINE">build-master</param>
</params>
<materials>
<pipeline pipelineName="#{BUILD_PIPELINE}" stageName="build" />
</materials>
</pipeline>
<pipeline name="deploy-to-sandbox-hotfix" template="deploy-template">
<params>
<param name="BUILD_PIPELINE">build-hotfix</param>
</params>
<materials>
<pipeline pipelineName="#{BUILD_PIPELINE}" stageName="build" />
</materials>
</pipeline>
<templates>
<pipeline name="deploy-template>
<stage name="deploy">
<jobs>
<job name="deploy">
<fetchartifact pipeline="#{BUILD_PIPELINE}" stage="build" job="job" srcdir="source"/>
</job>
<jobs>
</stage>
</pipeline>
</templates>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment