Skip to content

Instantly share code, notes, and snippets.

@ashwanthkumar
Created December 22, 2015 17:11
Show Gist options
  • Select an option

  • Save ashwanthkumar/ce0173383057b2829e69 to your computer and use it in GitHub Desktop.

Select an option

Save ashwanthkumar/ce0173383057b2829e69 to your computer and use it in GitHub Desktop.
Sample pipeline configuration for running GoCD Janitor (https://github.com/ashwanthkumar/gocd-janitor)
<pipeline name="gocd-janitor" labeltemplate="cleanup-${COUNT}" isLocked="false">
<timer>0 30 5 ? * MON</timer>
<stage name="cleanup">
<approval type="manual" />
<jobs>
<job name="cleanup">
<tasks>
<exec command="wget">
<arg>https://github.com/ashwanthkumar/gocd-janitor/releases/download/v0.0.1/gocd-janitor-0.0.1-jar-with-dependencies.jar</arg>
</exec>
<exec command="java">
<arg>-cp</arg>
<arg>gocd-janitor-0.0.1-jar-with-dependencies.jar</arg>
<arg>in.ashwanthkumar.gocd.artifacts.Janitor</arg>
<arg>--conf</arg>
<!-- I'm assuming you've a local configuration for your GoCD installation -->
<arg>configs-gocd/data-pipeline.janitor.conf</arg>
<arg>--delete-artifacts</arg>
<runif status="passed" />
</exec>
</tasks>
<resources>
<resource>go-server</resource>
</resources>
</job>
</jobs>
</stage>
</pipeline>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment