Answers: <p>Rebuild, using the <a href="https://plugins.jenkins.io/rebuild/" rel="noreferrer">Rebuilder plugin</a> allows a completed job to be re-executed while allowing you to change the parameters, assuming your job is parameterized.</p>
  <p>Replay does something similar, except it doesn't show you parameters. Instead, it shows the pipeline code directly. This is helpful when wanting to test changes iteratively as you can click Replay, change one or two lines of code, then let it execute. The job will run using the same parameters as it did the first time it ran/completed.</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-05-04T17:53:33.010Z
Answers: This only answers half the question.  Why is rebuild/retrigger not an option sometimes?
Answers: Michael
Answers: CC BY-SA 4.0
Answers: 2021-08-02T17:21:40.623Z
Answers: Replay won't appear if the code isn't loaded. If you abort the pipeline or have SCM authentication issues, and git can't load the code, you won't see the replay button. If you have jenkins code inline this won't be an issue.
Answers: Azteca
Answers: CC BY-SA 4.0
Answers: 2020-09-02T16:43:46.487Z
Answers: 2020-09-02T16:43:46.487Z
Answers: Argyle
Body: <p>If you want to re-run a Jenkins job, you can click the <code>Rebuild</code> button which sometimes appears as the <code>Replay</code> button.</p>
  <p><strong>What is the difference <code>Rebuild</code>ing a job versus <code>Replay</code>ing it?</strong></p>
  <p><strong>Why is it that some jobs display <code>Replay</code> while others display <code>Rebuild</code>?</strong></p>
  
Tags: <jenkins><jenkins-pipeline>
Title: What is the difference between Jenkin's `Replay` and `Rebuild` options?
UserDisplayName: Wimateeka
ThreadText: # What is the difference between Jenkin's `Replay` and `Rebuild` options?
  
  (Asked by: username_0 on 2020-09-02)
  
  If you want to re-run a Jenkins job, you can click the `Rebuild` button which sometimes appears as the `Replay` button.
  
  **What is the difference `Rebuild`ing a job versus `Replay`ing it?**
  
  **Why is it that some jobs display `Replay` while others display `Rebuild`?**
  
  **Tags:** jenkins, jenkins-pipeline
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-09-02. Score: 21 | Accepted answer
  
  Rebuild, using the [Rebuilder plugin](https://plugins.jenkins.io/rebuild/) allows a completed job to be re-executed while allowing you to change the parameters, assuming your job is parameterized.
  
  Replay does something similar, except it doesn't show you parameters. Instead, it shows the pipeline code directly. This is helpful when wanting to test changes iteratively as you can click Replay, change one or two lines of code, then let it execute. The job will run using the same parameters as it did the first time it ran/completed.
  
  > **Comments:**
  > **username_2**: This only answers half the question.  Why is rebuild/retrigger not an option sometimes?  
  > **username_3**: Replay won't appear if the code isn't loaded. If you abort the pipeline or have SCM authentication issues, and git can't load the code, you won't see the replay button. If you have jenkins code inline this won't be an issue.  
  
  ---
  
  