jenkinsci / jenkinsci/gitlab-plugin

A pipeline job with SCM branch wildcards does not show branch info in the build description

Open
#599 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

## Issue

### Context

- **Gitlab plugin version**: 1.4.5
- **Gitlab version**: 9.0
- **Jenkins version**: 2.63
- **Job type**: Pipeline

### Problem description

A freestyle job with SCM branch wildcards (like `*/**`) shows the action type, branch, and source/target branch for merges in the build description automatically.

![image](https://user-images.githubusercontent.com/217842/28582879-0dde8a5e-7135-11e7-94aa-0d26d91b4dae.png)

The same does not seem to happen with pipeline jobs.

I could probably construct something similar, but it's less than perfect (shown here, using the declarative pipeline syntax).

```
script {
currentBuild.description = "${build description string from env vars here}"
}
```

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.