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

     1  metadata:
     2    name: jsonApplyPatch
     3    description: Patches a json with a patch file
     4    longDescription: |-
     5      This steps patches a json file with patch file using the json patch standard.
     6      This step can, e.g., be used if there is a json schema which needs to be patched.
     7  spec:
     8    inputs:
     9      params:
    10        - name: input
    11          type: string
    12          description: File path to the json file which schould be patched.
    13          mandatory: true
    14          scope:
    15            - PARAMETERS
    16        - name: patch
    17          type: string
    18          description: File path to the patch which should be applied to the json file.
    19          mandatory: true
    20          scope:
    21            - PARAMETERS
    22        - name: output
    23          type: string
    24          description: File path to destination of the patched json file.
    25          mandatory: true
    26          scope:
    27            - PARAMETERS