Skip to content

Commit

Permalink
chore: add support for release periodic job
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Qi <jinqi@redhat.com>
  • Loading branch information
jinqi7 committed Jan 17, 2025
1 parent 8221e59 commit 6abd380
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func (ci CI) init() error {
return nil
}

if strings.Contains(jobName, "release-service-catalog") && strings.Contains(jobName, "periodic") {
rctx.JobName = jobName
return nil
}

if err = ci.parseJobSpec(); err != nil {
return err
}
Expand Down Expand Up @@ -299,9 +304,9 @@ func (ci CI) TestE2E() error {
}

// Eventually, when mage rules will be in place for all the repos, this functionality will be moved to individual repos where it is needed
if err := SetupCustomBundle(); err != nil {
return err
}
// if err := SetupCustomBundle(); err != nil {
// return err
// }

// Eventually we'll introduce mage rules for all repositories, so this condition won't be needed anymore
if pr.RepoName == "e2e-tests" || pr.RepoName == "integration-service" ||
Expand Down Expand Up @@ -359,6 +364,10 @@ func RunE2ETests() error {
case "infra-deployments":
return engine.MageEngine.RunRules(rctx, "tests", "infra-deployments")
default:
if strings.Contains(rctx.JobName, "release-service-catalog") {
labelFilter := utils.GetEnv("E2E_TEST_SUITE_LABEL", "release-pipelines")
return runTests(labelFilter, "e2e-report.xml")
}
labelFilter := utils.GetEnv("E2E_TEST_SUITE_LABEL", "!upgrade-create && !upgrade-verify && !upgrade-cleanup && !release-pipelines")
return runTests(labelFilter, "e2e-report.xml")
}
Expand Down

0 comments on commit 6abd380

Please sign in to comment.