# scheduled-test-pipelines
Scheduled test pipelines application_family: automation-testing

## Overview

This repo stores Jenkinsfiles for scheduled test pipelines — pipelines that run on a cron schedule and/or trigger off upstream project builds. It is the canonical home for pipeline definitions that don't belong inside an individual application repo.

Currently hosted here:

- **`playwright/prod/`** — Playwright E2E prod test pipelines, one Jenkinsfile per feature area

---

## Adding a new Playwright prod pipeline

Adding a new pipeline requires changes to **two repos**: this one and `jenkins-config`.

### 1. Add the Jenkinsfile here

Create `playwright/prod/Jenkinsfile.<feature>` following the pattern of existing files, e.g. `playwright/prod/Jenkinsfile.collaborators`.

### 2. Register the pipeline in jenkins-config

In `theorchard/jenkins-config`, open `pipeline.theorchard.io/jobs/standalonePipelines.groovy` and add your feature name to the `playwrightProdFeatures` list:

```groovy
def playwrightProdFeatures = [
    'collaborators',
    // ...
    'your-new-feature',  // add here
]
```

The loop below that list automatically generates a pipeline job named `<feature>-e2e-prod-tests-pipeline` pointing at `playwright/prod/Jenkinsfile.<feature>` in this repo.

### Merge order

Merge the `scheduled-test-pipelines` PR (this repo) **before** or alongside the `jenkins-config` PR, so Jenkins never points at a missing Jenkinsfile.
