jenkinsci / jenkinsci/gitlab-plugin

Add support jenkins native of job execution status for updateGitlabCommitStatus function

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

Description

## Issue
Hi,
Can we natively support jenkins execution job status for pushing them to updateGitlabCommitStatus directly for avoiding extra conditional switches?

Example of current conditional swithes demonstrated below:
```
if (currentResult == "aborted") {
job_status = "canceled"
} else if (currentResult == "success") {
job_status = "success"
} else {
job_status = "failed"
}

updateGitlabCommitStatus name: 'build', state: job_status
```
### Context
- **Gitlab version**: 13.6.1-ee
- **Jenkins version**: 2.204.6
- **Job type**: Pipeline

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.