Commit c1725124 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'russell/edit-jenkins-intructions' into 'master'

Edited GitLab-Jenkins integration instructions

See merge request gitlab-org/gitlab!31560
parents 7943d2e7 68117d77
......@@ -99,11 +99,15 @@ Set up the Jenkins project you’re going to run your build on.
1. Check the following checkboxes:
- **Accepted Merge Request Events**
- **Closed Merge Request Events**
1. If you created a **Freestyle** project, choose Publish build status to GitLab in the Post-build Actions section.
If you created a **Pipeline** project, you must use a pipeline script to update the status on
GitLab. The following is an example pipeline script:
1. Specify how build status is reported to GitLab:
- If you created a **Freestyle** project, in the **Post-build Actions** section, choose
**Publish build status to GitLab**.
- If you created a **Pipeline** project, you must use a Jenkins Pipeline script to update the status on
GitLab.
```plaintext
Example Jenkins Pipeline script:
```groovy
pipeline {
agent any
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment