github.com/jaylevin/jenkins-library@v1.230.4/resources/metadata/npmExecuteLint.yaml (about)

     1  metadata:
     2    name: npmExecuteLint
     3    aliases:
     4      - name: executeNpm
     5    description: Execute ci-lint script on all npm packages in a project or execute default linting
     6    longDescription: |
     7      Execute ci-lint script for all package json files, if they implement the script. If no ci-lint script is defined,
     8      either use ESLint configurations present in the project or use the provided general purpose configuration to run ESLint.
     9  spec:
    10    inputs:
    11      params:
    12        - name: install
    13          type: bool
    14          description: Run npm install or similar commands depending on the project structure.
    15          scope:
    16            - PARAMETERS
    17            - STAGES
    18            - STEPS
    19          default: false
    20        - name: runScript
    21          type: string
    22          description: List of additional run scripts to execute from package.json.
    23          scope:
    24            - PARAMETERS
    25            - STAGES
    26            - STEPS
    27          default: "ci-lint"
    28        - name: failOnError
    29          type: bool
    30          description: Defines the behavior in case linting errors are found.
    31          scope:
    32            - PARAMETERS
    33            - STAGES
    34            - STEPS
    35          mandatory: false
    36          default: false
    37        - name: defaultNpmRegistry
    38          type: string
    39          description: URL of the npm registry to use. Defaults to https://registry.npmjs.org/
    40          scope:
    41            - PARAMETERS
    42            - GENERAL
    43            - STAGES
    44            - STEPS
    45          mandatory: false
    46          aliases:
    47            - name: npm/defaultNpmRegistry
    48    containers:
    49      - name: node
    50        image: node:lts-stretch