Skip to content

add builds and connection params to UpdateGitlabCommitStatusStep#1911

Open
krisstern wants to merge 3 commits into
jenkinsci:masterfrom
krisstern:add_build_and_connections_params_for_update_status_step
Open

add builds and connection params to UpdateGitlabCommitStatusStep#1911
krisstern wants to merge 3 commits into
jenkinsci:masterfrom
krisstern:add_build_and_connections_params_for_update_status_step

Conversation

@krisstern

@krisstern krisstern commented Jun 17, 2026

Copy link
Copy Markdown
Member

To follow up on #1025

Testing done

Ran mvn clean verify locally

c.c. @HeikoBoettger-KarlStorz

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

# Conflicts:
#	src/main/java/com/dabsquared/gitlabjenkins/workflow/UpdateGitLabCommitStatusStep.java
@krisstern krisstern self-assigned this Jun 17, 2026
@krisstern krisstern requested a review from a team as a code owner June 17, 2026 15:50
@krisstern krisstern added the bug For changelog: Minor bug. Will be listed after features label Jun 17, 2026
@krisstern krisstern requested a review from Copilot June 17, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds optional builds and GitLab connection parameters to the updateGitlabCommitStatus Pipeline step so it can update commit status for explicit project/commit targets and/or a chosen connection (intended to improve compatibility with Jenkins Pipeline Shared Libraries).

Changes:

  • Add builds: List<GitLabBranchBuild> parameter to UpdateGitLabCommitStatusStep.
  • Add connection: GitLabConnectionProperty parameter to UpdateGitLabCommitStatusStep.
  • Minor descriptor annotation and serialization annotation updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 89 to 93
public static class UpdateGitLabCommitStatusStepExecution extends AbstractSynchronousStepExecution<Void> {
@Serial
private static final long serialVersionUID = 1;

private final transient Run<?, ?> run;
Comment on lines +75 to +87
@DataBoundSetter
public void setBuilds(List<GitLabBranchBuild> builds) {
this.builds = builds;
}

public GitLabConnectionProperty getConnection() {
return connection;
}

@DataBoundSetter
public void setConnection(GitLabConnectionProperty connection) {
this.connection = connection;
}
krisstern and others added 2 commits June 18, 2026 00:21
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug For changelog: Minor bug. Will be listed after features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants