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