web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to trigger Jenkins...
Power Automate
Unanswered

How to trigger Jenkins build with parameters from Power Automate Custom Connector

(0) ShareShare
ReportReport
Posted on by
Hello everyone,
I'm trying to build a custom connector in Power Automate to trigger a Jenkins job hosted on our internal Rancher cluster (with LoadBalancer IP).
So far, I’ve configured two actions:
1. **GetCrumb** – using `/crumbIssuer/api/json`, which successfully returns the Jenkins Crumb.
2. **TriggerBuild** – using `/job/statement-sit-CD/buildWithParameters` with POST, Content-Type = `application/x-www-form-urlencoded`.
When I test the connector in Power Automate:
- Crumb is received successfully.
- But the second action returns **Status 500 (Internal Server Error)** from Jenkins.
I’ve already tried:
- Including `Jenkins-Crumb` in headers.
- Adding `token` as query string.
- Changing Content-Type between `application/json` and `application/x-www-form-urlencoded`.
- Using both `/buildWithParameters` and `/build`.
Still getting the same 500 error when executed from Power Automate, while the same call works fine from Postman.
Does anyone have experience triggering Jenkins jobs from Power Automate custom connectors?  
Is there a recommended way to handle Jenkins CSRF Crumbs and tokens in Power Automate?
Thanks in advance!
**Environment details:**
- Jenkins 2.516.3 (on Rancher / Kubernetes)
- Power Automate Custom Connector (Security type: Basic Auth)
- Using internal LoadBalancer URL for Jenkins
 
Categories:
I have the same question (5)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard