9
Views
3
Comments
[Trigger Pipeline] Is it possible to configure new triggers in bulk from api or via automation ?
trigger-pipeline
Web icon
Forge asset by OutSystems Lab
Application Type
Traditional Web

Is it possible to configure new triggers in bulk from api or via automation ? I dont want to create/confiogure triggers manually in lifetime .

2021-01-01 09-23-30
Michael de Guzman
Champion

Hi Shubham,

As far as I can tell, Trigger Pipeline doesn't expose a bulk/config REST API for creating the triggers.  The only API it ships with is the Connector API and it's not for bulk-creating trigger configs.

I use Trigger Pipeline myself, and honestly I've just been configuring triggers manually rather than automating it, so this isn't something I have to solve first hand.  

But here's what I'd try:
1. Modify "Trigger Pipeline" itself to your need.  You may look at "TriggerConfiguration" entity for this.
2. Raise it to Outsystems Labs for their consideration.  I think it's a reasonable request.
3. If you're open to a bigger change, you can use external orchestration instead, like Azure, and not use "Trigger Pipeline" entirely. Outsystems maintains the outsystems-pipeline python packages which wraps the LifeTime API directly. You can explore the YAML template provided in examples/azure_devops for your own use. However, note that this isn't an API to bulk-create triggere records.

Just curious, what does automation mean for your use case?  Are you looking for an API you can call from your own tooling, or just a way to avoid clicking through the UI app by app?

That will guide you on the right options.

I hope this helps.

UserImage.jpg
Shubham Gupta

Hello Michael, 

Thank you for the answer we want to automate the full deployment of trigger pipelines in combination with Azure devops , we had the way to automate the deployment of Azure pipelines but trigger pipelines was always a manual job , but we found a solution to automate the trigger pipelines creation by extending it with a new api for creating the trigger pipelines via automation and this also be used for bulk operation.


Regards

Shubham Gupta

2021-01-01 09-23-30
Michael de Guzman
Champion


Hi Shubham,

That's great news. Thanks for coming back to share it.

I'm curious how you built the new API. Did you extend the Connector API itself, or build a separate layer on top of Trigger Pipeline?

Thanks again for closing the loop.

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