Skip to content

Commit ebfa6bb

Browse files
committed
explained the lifecycle
1 parent 13668d3 commit ebfa6bb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/src/main/java/hudson/tasks/BuildStep.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
* be null (which is the case when you access the field for the first time
6363
* the object is restored.)
6464
*
65+
* <h2>Lifecycle</h2>
66+
* <p>
67+
* Build steps are instantiated when the user saves the job configuration, and sticks
68+
* around in memory until the job configuration is overwritten.
69+
*
6570
* @author Kohsuke Kawaguchi
6671
*/
6772
public interface BuildStep {

core/src/main/java/hudson/tasks/BuildWrapper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
* along with {@link Project}.
5353
*
5454
* <p>
55+
* {@link BuildWrapper}s are instantiated when the user saves the job configuration, and sticks
56+
* around in memory until the job configuration is overwritten.
57+
*
58+
*
59+
* <p>
5560
* The {@link #setUp(Build,Launcher,BuildListener)} method is invoked for each build.
5661
*
5762
* <p>

0 commit comments

Comments
 (0)