Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>6.2138.v03274d462c13</version>
<version>6.2152.ve00a_731c3ce9</version>
<relativePath />
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ void createRevisionParameterAction_pushNewTagRequest(GitLabPushRequestSamples sa
@MethodSource("data")
void doNotCreateRevisionParameterAction_deleteBranchRequest(GitLabPushRequestSamples samples) {
PushHook hook = samples.deleteBranchRequest();
assertThrows(NoRevisionToBuildException.class, () -> new PushHookTriggerHandlerImpl(false)
.createRevisionParameter(hook, null));
assertThrows(
NoRevisionToBuildException.class,
() -> new PushHookTriggerHandlerImpl(false).createRevisionParameter(hook, null));
}

@ParameterizedTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ void build_alreadyBuiltMR_alreadyBuiltMR() throws Exception {
0, new ParametersAction(new StringParameterValue("gitlabTargetBranch", "master")));
future.get();

assertThrows(HttpResponses.HttpResponseException.class, () -> new NoteBuildAction(
testProject, getJson("NoteEvent_alreadyBuiltMR.json"), null)
.execute(response));
assertThrows(
HttpResponses.HttpResponseException.class,
() -> new NoteBuildAction(testProject, getJson("NoteEvent_alreadyBuiltMR.json"), null)
.execute(response));
verify(trigger).onPost(any(NoteHook.class));
}

Expand Down Expand Up @@ -128,9 +129,10 @@ void build_alreadyBuiltMR_differentTargetBranch() throws Exception {
.build()));
future.get();

assertThrows(HttpResponses.HttpResponseException.class, () -> new NoteBuildAction(
testProject, getJson("NoteEvent_alreadyBuiltMR.json"), null)
.execute(response));
assertThrows(
HttpResponses.HttpResponseException.class,
() -> new NoteBuildAction(testProject, getJson("NoteEvent_alreadyBuiltMR.json"), null)
.execute(response));
verify(trigger).onPost(any(NoteHook.class));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ void buildOnSuccess() {

@Test
void doNotBuildOnFailure() {
assertThrows(HttpResponses.HttpResponseException.class, () -> new PipelineBuildAction(
testProject, getJson("PipelineFailureEvent.json"), null)
.execute(response));
assertThrows(
HttpResponses.HttpResponseException.class,
() -> new PipelineBuildAction(testProject, getJson("PipelineFailureEvent.json"), null)
.execute(response));
verify(trigger).onPost(any(PipelineHook.class));
}

Expand Down
Loading