Skip to content

Commit fa934c0

Browse files
monikakusterivicac
authored andcommitted
2293 - set custom action true,SF
1 parent 76e34a8 commit fa934c0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

server/libs/modules/components/jenkins/src/main/java/com/bytechef/component/jenkins/JenkinsComponentHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class JenkinsComponentHandler implements ComponentHandler {
4343
.actions(JenkinsCreateJobAction.ACTION_DEFINITION)
4444
.clusterElements(tool(JenkinsCreateJobAction.ACTION_DEFINITION))
4545
.connection(JenkinsConnection.CONNECTION_DEFINITION)
46-
.triggers(JenkinsNewJobStatusNotificationTrigger.TRIGGER_DEFINITION);
46+
.triggers(JenkinsNewJobStatusNotificationTrigger.TRIGGER_DEFINITION)
47+
.customAction(true);
4748

4849
@Override
4950
public ComponentDefinition getDefinition() {

server/libs/modules/components/jenkins/src/test/java/com/bytechef/component/jenkins/trigger/JenkinsNewJobStatusNotificationTriggerTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
*/
3838
class JenkinsNewJobStatusNotificationTriggerTest {
3939

40-
protected WebhookEnableOutput mockedWebhookEnableOutput = mock(WebhookEnableOutput.class);
41-
protected WebhookBody mockedWebhookBody = mock(WebhookBody.class);
42-
protected HttpHeaders mockedHttpHeaders = mock(HttpHeaders.class);
43-
protected HttpParameters mockedHttpParameters = mock(HttpParameters.class);
44-
protected WebhookMethod mockedWebhookMethod = mock(WebhookMethod.class);
45-
protected Parameters mockedParameters = mock(Parameters.class);
46-
protected TriggerContext mockedTriggerContext = mock(TriggerContext.class);
40+
private final WebhookEnableOutput mockedWebhookEnableOutput = mock(WebhookEnableOutput.class);
41+
private final WebhookBody mockedWebhookBody = mock(WebhookBody.class);
42+
private final HttpHeaders mockedHttpHeaders = mock(HttpHeaders.class);
43+
private final HttpParameters mockedHttpParameters = mock(HttpParameters.class);
44+
private final WebhookMethod mockedWebhookMethod = mock(WebhookMethod.class);
45+
private final Parameters mockedParameters = mock(Parameters.class);
46+
private final TriggerContext mockedTriggerContext = mock(TriggerContext.class);
4747

4848
@Test
4949
void testWebhookRequest() {

0 commit comments

Comments
 (0)