Skip to main content
Use this example pipeline to run Momentic tests on Jenkins. More reference configs live in momentic-ai/examples. Given this root package.json:
package.json
Create a file called Jenkinsfile in your repository with the following contents:
Jenkinsfile

Authentication

To run any commands, you must authenticate with Momentic. Add the momentic-api-key credential to your Jenkins instance.
  1. Create an API key in the Momentic dashboard.
Copy the value. You add it as a CI secret in the next step.
  1. Add a new global credential to your Jenkins controller.
Add a global credential in Jenkins
  1. At the top of your Jenkinsfile, provide the following environment variables to the pipeline:
Jenkinsfile