package.json
:
package.json
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 themomentic-api-key
credential to your Jenkins instance.
- Create an API key in Momentic Cloud.

- Add a new global credential to your Jenkins controller.

- At the top of your
Jenkinsfile
, provide the following environment variables to the pipeline:
Jenkinsfile