gotchaMajor
What is the difference between Jenkin's `Replay` and `Rebuild` options?
Viewed 0 times
thejenkinwhatoptionsrebuilddifferencebetweenreplayand
Problem
If you want to re-run a Jenkins job, you can click the
What is the difference
Why is it that some jobs display
Rebuild button which sometimes appears as the Replay button.What is the difference
Rebuilding a job versus Replaying it?Why is it that some jobs display
Replay while others display Rebuild?Solution
Rebuild, using the Rebuilder plugin 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.
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.
Context
StackExchange DevOps Q#12327, answer score: 20
Revisions (0)
No revisions yet.