'How do I trigger jenkins matrix job from a pipeline

I tried running below, but it doesn't select any combinations inside matrix job. "DATA " is Matrix Combinations Parameter.

build job: "Matrix",parameters: [ new hudson.plugins.matrix_configuration_parameter.MatrixCombinationsParameterValue ("DATA", null, ["axes1=value,axes2=value,label=value,axes4=value"]) ], wait: true, propagate: false

I also tried:

build job: "Matrix",parameters: [ [$class: 'MatrixCombinationsParameterValue', name: 'DATA', combinations: ["axes1=value,axes2=value,label=value,axes4=value"]], ], wait: true, propagate: false



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source