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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.