Add a new job to an existing GoCD stage

Now that we have a pipeline with stage(s), we can add more jobs to any of the existing stages. You can now use the tree navigation on the left side of the screen to edit a stage or a job under a pipeline.

  • Click on the stage name that you want to edit on the tree as shown below. The “defaultStage” is being edited. Add Job to Existing Stage - 图1
  • Click on the Jobs tab
  • Click on “Add new job” Add Job to Existing Stage - 图2
  • Fill job name and job details Add Job to Existing Stage - 图3
  • Fill in the details for the initial task belonging to this job. You can edit this job later to add more tasks
  • You can choose the type of the task as required.
  • For task types Ant, Nant and Rake, the build file and target will default as per the tool used. For example, Ant task, would look for build.xml in the working directory, and use the default task if nothing is mentioned.
  • Click on help icon next to the fields to get additional details about the fields you are editing.
  • Click “Save”