You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Add or update the build status of a commit. The following fluent methods are available on the
576
-
* CommitStatus instance for setting up the status:</p>
577
-
* <pre><code>
578
-
* withCoverage(Float)
579
-
* withDescription(String)
580
-
* withName(String)
581
-
* withRef(String)
582
-
* withTargetUrl(String)
583
-
* </code></pre>
584
-
*
585
-
* <pre><code>GitLab Endpoint: POST /projects/:id/statuses/:sha</code></pre>
586
-
*
587
-
* @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance (required)
588
-
* @param sha a commit SHA (required)
589
-
* @param state the state of the status. Can be one of the following: PENDING, RUNNING, SUCCESS, FAILED, CANCELED (required)
590
-
* @param pipelineId The ID of the pipeline to set status. Use in case of several pipeline on same SHA (optional)
591
-
* @param status the CommitSatus instance hoilding the optional parms: ref, name, target_url, description, and coverage
592
-
* @return a CommitStatus instance with the updated info
593
-
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
594
-
* @deprecated use {@link #addCommitStatus(Object, String, org.gitlab4j.api.Constants.CommitBuildState, CommitStatus)} and set the pipelineId value in the {@link CommitStatus} parameter
thrownewIllegalArgumentException("The parameter 'pipelineId' and the pipelineId value the 'status' parameter are different. Set the two values to be the same or one of the two values to null.");
0 commit comments