Generic webhook trigger is not working. Please help

101 views
Skip to first unread message

Manish Shahi

unread,
Dec 6, 2021, 5:24:11 AM12/6/21
to Jenkins Users

I am trying to trigger a job when a new tag is push from the Bitbucket repo. . The webhook from the Bitbucket side seems to be working fine, but the job is not triggered. I know this because the HTTP status is 200.

This is the result when i try to ping the webhook url

body : {"jobs":{"test":{"regexpFilterExpression":"^refs/tags/.*","triggered":false,"resolvedVariables":{"clone_url":"","commit":"","committer_email":"","committer_name":"","project_key":"MYP","ref":"","repo_slug":"","tag":""},"regexpFilterText":"","id":0,"url":""}},"message":"Triggered jobs."}


Pipeline Script

https://github.com/tomasbjerre/bitbucket-server-jenkins-release-tags/blob/master/Jenkinsfile

Ivan Fernandez Calvo

unread,
Dec 6, 2021, 12:52:17 PM12/6/21
to Jenkins Users
IIRC if you pass a regexp in the variable declaration those values will be removed, so you have to remove this line

https://github.com/tomasbjerre/bitbucket-server-jenkins-release-tags/blob/master/Jenkinsfile#L9
Reply all
Reply to author
Forward
0 new messages