Skip to main content
Example pipeline for running Momentic on Jenkins. More reference configs live in momentic-ai/examples. For a given 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. You can do this by adding the momentic-api-key credential to your Jenkins instance.
  1. Create an API key in Momentic dashboard.
Copy the value; you will add it as a CI secret in the next step.
  1. Add a new global credential to your Jenkins controller.
  1. At the top of your Jenkinsfile, provide the following environment variables to the pipeline:
Jenkinsfile