Add a new task to an existing GoCD Job

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

  • Click on the job name that you want to edit on the tree as shown below. The “defaultJob” is being edited. Add Task to Existing Job - 图1
  • Click on “Add new task”. You can choose the task type from Ant, Nant, Rake and Fetch Artifact. Or you can choose “More…” to choose a command from command repository or specify your own command Add Task to Existing Job - 图2
  • Fill the basic settings for the task
  • Click on help icon next to the fields to get additional details about the fields you are editing.
  • Click “Save” Add Task to Existing Job - 图3
  • Advanced Options section allows you to specify a Task in which you can provide the actions (typically clean up) that needs to be taken when users chooses to cancel the stage. Add Task to Existing Job - 图4