From d268dd3b62e7d98ca93bd588c7b9790995205427 Mon Sep 17 00:00:00 2001 From: abeizn Date: Wed, 25 Sep 2024 15:22:28 +0800 Subject: [PATCH] fix: jenkins e2e test --- backend/plugins/jenkins/e2e/builds_test.go | 2 +- backend/plugins/jenkins/e2e/stages_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/plugins/jenkins/e2e/builds_test.go b/backend/plugins/jenkins/e2e/builds_test.go index 2752c10f126..9bb03986309 100644 --- a/backend/plugins/jenkins/e2e/builds_test.go +++ b/backend/plugins/jenkins/e2e/builds_test.go @@ -29,7 +29,6 @@ import ( ) func TestJenkinsBuildsDataFlow(t *testing.T) { - var jenkins impl.Jenkins dataflowTester := e2ehelper.NewDataFlowTester(t, "jenkins", jenkins) @@ -41,6 +40,7 @@ func TestJenkinsBuildsDataFlow(t *testing.T) { JobName: `devlake`, JobFullName: `Test-jenkins-dir/test-jenkins-sub-dir/test-sub-sub-dir/devlake`, JobPath: `job/Test-jenkins-dir/job/test-jenkins-sub-dir/job/test-sub-sub-dir/`, + ScopeConfig: new(models.JenkinsScopeConfig), }, RegexEnricher: regexEnricher, } diff --git a/backend/plugins/jenkins/e2e/stages_test.go b/backend/plugins/jenkins/e2e/stages_test.go index 527698a8a48..d484325c82a 100644 --- a/backend/plugins/jenkins/e2e/stages_test.go +++ b/backend/plugins/jenkins/e2e/stages_test.go @@ -40,6 +40,7 @@ func TestJenkinsStagesDataFlow(t *testing.T) { JobName: `devlake`, JobFullName: `Test-jenkins-dir/test-jenkins-sub-dir/test-sub-sub-dir/devlake`, JobPath: `job/Test-jenkins-dir/job/test-jenkins-sub-dir/job/test-sub-sub-dir/`, + ScopeConfig: new(models.JenkinsScopeConfig), }, RegexEnricher: regexEnricher, }