jenkinsci / jenkinsci/gitlab-branch-source-plugin
Pipeline status is not returning to GitLab when "custom script" is used in Build Configuration
- 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)?

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.

### 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.

### Anything else?
_No response_
### Are you interested in contributing a fix?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.