package.json:
package.json
NodeJS 22 in Jenkins with Node.js 22.12.0 or
later in the 22.x line. Node.js 23 is unsupported. Commit package-lock.json
for npm ci, then create this Jenkinsfile:
Jenkinsfile
Authentication
To run any commands, you must authenticate with Momentic. Add themomentic-api-key credential to your Jenkins instance.
- Create an API key in the Momentic dashboard.

- Add a new global credential to your Jenkins controller.

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