25
Views
5
Comments
unable to trigger jenkins pipeline with pipeline parameters using trigger pipeline

case 1) Initially i define trigger manifest without pipeline parameters then i am able to trigger jenkins CICD pipeline with Trigger pipeline in Outsystems lifetime

case 2) But If i try to pass pipeline parameters  to the CI/CD pipeline in the trigger manifest using trigger pipeline then its not working
Note: Also i have changed jenkins pipeline configuration by selecting parameterized pipeline and mentioned string parameters which are same as per outsystem pipeline trigger

getting error from jenkins as below: 
Caught unhandled exception with ID 40a2edc8-1ccd-421a-8408-760277b17caajava.lang.IllegalArgumentException: No such parameter definition: TriggerManifest



Please help to solve above issue. 


trigger_pipeline_error.png
2024-04-15 11-22-45
Prabhu K

@Rui Mendes and Team,

Could you please help us for above issue?


Thanks,

Prabhu K

2019-03-18 15-58-58
Duarte Castaño
Staff

Hello,

The Pipeline Parameters values are passed into the Trigger Manifest in JSON format.

The only parameters sent to Jenkins are the Trigger Manifest and eventually the TriggeredBy. 


Cheers,
Duarte Castaño

2024-04-15 11-22-45
Prabhu K

Hello Duarte,

Thanks for the reply,

You mean to say we can't pass parameter value without Json format? and only one parameter we can pass i.e Triggered By?

But we have option to add multiple parameters on Trigger Pipeline from LT, as mentioned below, and i hope here values are not required on JSON format.


And please check below attached snapshot of Trigger Pipeline site properties configuration, we have configured required things for running pipeline and suggest us if anything we need to add/change.


Could you please guide us and provide us any documentation which address our concern.


Regards,

Prabhu K

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Prabhu,


The functionality is the ability to add information via "parameters" for each pipeline.
Those are added to the TriggerManifest, which is passed as an input parameter to the Jenkins pipeline.

I recommend that you check, in Jenkins, for the TriggerManifest content to see if the parameter values are present. 

This functionality is currently undocumented, but we intend to add it at a later stage.

In addition, in a future release of this component, we may add the functionality you were expecting (i.e., pipeline parameters sent as input parameters to Jenkins). 


As per your site properties configuration, as you have the Feature_UseTriggerManifest and SendTriggeredByParameterInManifest set to True, your Jenkins pipeline should only expect one input parameter: the TriggerManifest.


Regards,
Duarte Castaño


2024-04-15 11-22-45
Prabhu K

Thank you Duarte for you time and guidance.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.