Integration · CI/CD · via REST API
Add a stage that refreshes the test database before your tests run. The stage calls the Synthesized REST API with a key from Jenkins credentials, waits for the workflow to finish, and fails the build if it doesn't.
There is no Jenkins plugin; this pattern uses the documented REST API.
| How it connects | A sh step runs a script that starts a workflow with POST /external/api/v1/workflow/{id}/run and polls GET /workflow-run/{id}. |
|---|---|
| Secrets | The access key is a Jenkins Secret text credential, bound with withCredentials and masked in the log. |
| Agent needs | curl, jq and HTTPS access to Governor. |
| Scheduling | triggers { cron('H 2 * * 1-5') } for a weekday refresh, or run it on every build. |
| Status | Works through the REST API. Jenkins isn't named in the Synthesized docs; the API calls are. |
Create the masking, subsetting or generation workflow and run it once by hand. Note its workflow ID.
Generate an access key for a dedicated Governor user and store it in Jenkins as a Secret text credential, for example synthesized-access-key.
Add run-synthesized-workflow.sh to the repository. It exits non-zero if the run fails, which fails the stage.
Put the data stage before the test stage, as in the Jenkinsfile below.
A declarative pipeline that refreshes data on weekday nights and before every test run. Replace the Governor URL and workflow ID with your own.
Jenkinsfile
scripts/run-synthesized-workflow.sh
An access key carries the permissions of the Governor user who generated it. Create a user that can reach only the workflows this pipeline runs, generate the key as that user, and give it a short expiry: keys are chosen from 1 hour to a year, and the docs say they can't yet be revoked.
Two runs can't write to the same output database at the same time. If parallel pipelines or branches need data, give each environment its own workflow or output database.
Workers read the source, mask, subset or generate, and write the target. Database contents stay with the workers and aren't sent to Governor, which, like the pipeline, only sees run status, logs and configuration. Run Synthesized on-premises, including air-gapped, and the data never leaves your environment; it is also available as SaaS.
No. A pipeline stage calls the Synthesized REST API, so it works with any Jenkins setup that can reach your Governor over HTTPS. You need an HTTP client (the examples use curl and jq), the Governor URL, a workflow ID and an access key.
Store it as a Secret text credential and bind it with withCredentials. Jenkins masks bound secrets in the build log, on a best-effort basis, so don't echo them.
Yes. Add an Execute shell build step that runs the script, and bind the credential with the build environment option for secret text.
The calls are plain HTTPS, so a PowerShell step with Invoke-RestMethod works the same way: start the run, poll the status, read the logs on failure.
Add disableConcurrentBuilds() to the pipeline options, or give each environment its own Synthesized workflow and output database.
Bring one job that waits on test data, and see a Synthesized workflow refresh it before the tests run.
All product names, including Jenkins, are trademarks of their respective owners.