How to connect Jeknins with bitbucket pipeline for using curl command to run pipeline

Anil Mitkari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2024

I have jenkins pipeline for build and deployment. need to run curl command to trigger build remotely. How to connect jenkine with bitbucket pipeline to use curl command for ex. curl -X POST http://server-ip:8080/job/test123/buildWithParameters --user build-user:authentication-token --data key=value

I need to run this command in bitbucket pipeline but it is getting failed and error is 

0curl: (7) Failed to connect to server-ip port 8080: Connection timed out

1 answer

1 vote
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2024

Hi Anil,

I would recommend referring to and using the Jenkins job trigger pipe to trigger builds in Jenkins, you can find setup instructions and documentation for usage below:

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events