jenkinsci / jenkinsci/gitlab-plugin

How to get a gitlabClient to call e.g. createMergeRequest(...) from Declarative Jenkins Pipeline

Open
#1,388 3 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

### Describe your use-case which is not covered by existing documentation.

We would like to call[ `GitLabClient#createMergeRequest(...)`](https://github.com/jenkinsci/gitlab-plugin/blob/9d32eea43bed3aaf93da9cc3aea6d92c74cd8aa8/src/main/java/com/dabsquared/gitlabjenkins/gitlab/api/GitLabClient.java#L19) from our Jenkinsfile (Declarative Pipeline).

How can we get a current instance of the GitLabClient? I did not find any documentation on this.

Thanks for helping out.

### Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

https://github.com/jenkinsci/gitlab-plugin/blob/9d32eea43bed3aaf93da9cc3aea6d92c74cd8aa8/src/main/java/com/dabsquared/gitlabjenkins/gitlab/api/GitLabClient.java#L19

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.