jenkinsci / jenkinsci/gitlab-branch-source-plugin

Pipeline status is not returning to GitLab when "custom script" is used in Build Configuration

Open
#395 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

### Jenkins and plugins versions report

Environment


```text
Paste the output here
```

### What Operating System are you using (both controller, and any agents involved in the problem)?

![PIC](https://github.com/jenkinsci/gitlab-branch-source-plugin/assets/71327995/6a142278-71ca-4519-96c5-d160986720f0)
RHEL

### Reproduction steps

1. Used "Custom Script" in Mode field of Build Configuration in Multi Branch Pipeline.
2. Ran the pipeline and able to execute it successfully and but pipeline is not returning the status.
3. Pipeline status in GitLab in Pending state. Actually it should be showing as success but not in this case.
4. Attached screenshot for reference.
![customScript](https://github.com/jenkinsci/gitlab-branch-source-plugin/assets/71327995/64cc0df9-06e8-499b-b34f-990e504a74ed)

### Expected Results

Pipeline status in GitLba should be showing as success and allow MR to merge with target branch.

### Actual Results

Not returning pipeline status from Jenkins to GitLab. pipeline status in GitLab is in stuck state.
![PIC](https://github.com/jenkinsci/gitlab-branch-source-plugin/assets/71327995/34bcefd5-13e2-45a0-b017-521969eb7f19)

### Anything else?

_No response_

### Are you interested in contributing a fix?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.