Skip to content

Commit 8246200

Browse files
authored
Update job-lifecycle.md
I restructed the entire page according to Assembla ticket DU-26, which covers User Story 6 of the Docs Project.
1 parent ed2827b commit 8246200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user/job-lifecycle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ In this section, learn the job lifecycle process and how to customize any phase
1717

1818
The ‘.travis.yml’ file describes the build process for Travis CI. A *build* in Travis CI consists of at least one unnamed stage or a sequence of [stages](/user/build-stages/). Each *stage* consists of one or more *jobs* running parallel inside the stage.
1919

20-
[Build, Stages, and Jobs Diagram]()
20+
![Build, Stages, and Jobs Diagram](/user/images/Build-stages-jobs.png)
2121

2222
Each *job* is a sequence of *phases*, which are sequential steps that form a job. The following table shows the main phases that users can add to jobs.
2323

2424
| **Pre-Install Phase (Optional)** | **Install Phase** | **Script Phase** | **Deploy Phase (Optional)** |
2525
|---|---|---|---|
26-
| Travis CI can run these optional commands in this phase:<br>- [`apt addons`](/user/installing-dependencies/#installing-packages-with-the-apt-addon)<br>- `before_cache` (if and only if caching is effective)<br>- [`cache components`](/user/caching/) | Travis CI can run the following custom commands in this main phase:<br>- `install`: installs any dependencies required.<br> - `before_install`: before the install phase.<br> - `before_script`: before the script phase.<br> - `after_script`: after the script phase.<br> - `after_success`: when the build *succeeds* (e.g., building documentation), the result is in the `TRAVIS_TEST_RESULT` environment variable.<br> - `after_failure`: when the build *fails* (e.g., uploading log files), the result is in the `TRAVIS_TEST_RESULT` environment variable. | Travis CI can run the following custom commands in this main phase:<br>- `script`: run the build script.<br> - `before_install` - before the install phase.<br> - `before_script` - before the script phase.<br> - `after_script` - after the script phase.<br> - `after_success` - when the build *succeeds* (e.g., building documentation), the result is in the `TRAVIS_TEST_RESULT` environment variable.<br> - `after_failure` - when the build *fails* (e.g., uploading log files), the result is in the `TRAVIS_TEST_RESULT` environment variable. | Travis CI can run custom commands in the phases:<br>- `deploy`: optional deployment phase.<br>- `before_deploy`: (if and only if deployment is active)<br>- `after_deploy`: (if and only if deployment is active) |
26+
| Travis CI can run these optional commands in this phase:<br>- [`apt addons`](/user/installing-dependencies/#installing-packages-with-the-apt-addon)<br>- `before_cache` (if and only if caching is effective)<br>- [`cache components`](/user/caching/) | Travis CI can run the following custom commands in this main phase:<br>- `install`: installs any dependencies required.<br> - `before_install`: before the install phase.<br> - `before_script`: before the script phase.<br> - `after_script`: after the script phase.<br> - `after_success`: when the build *succeeds* (e.g., building documentation), the result is in the `TRAVIS_TEST_RESULT` environment variable.<br> - `after_failure`: when the build *fails* (e.g., uploading log files), the result is in the `TRAVIS_TEST_RESULT` environment variable. | Travis CI can run the following custom commands in this main phase:<br>- `script`: run the build script.<br> - `before_install`: before the install phase.<br> - `before_script`: before the script phase.<br> - `after_script`: after the script phase.<br> - `after_success`: when the build *succeeds* (e.g., building documentation), the result is in the `TRAVIS_TEST_RESULT` environment variable.<br> - `after_failure`: when the build *fails* (e.g., uploading log files), the result is in the `TRAVIS_TEST_RESULT` environment variable. | Travis CI can run custom commands in the phases:<br>- `deploy`: optional deployment phase.<br>- `before_deploy`: (if and only if deployment is active)<br>- `after_deploy`: (if and only if deployment is active) |
2727

2828
> **Note**: A *build* can be composed of many jobs.
2929
@@ -158,7 +158,7 @@ Follow these steps to run that script from your `.travis.yml` file:
158158
```
159159
{: data-file=".travis.yml"}
160160

161-
#### Use the `exit` Command Correctly
161+
#### Use the `exit` Command
162162

163163
After specifying the steps in the job lifecycle, these are compiled into a single bash script and executed on the worker.
164164

0 commit comments

Comments
 (0)