We are writing a custom script using shell and curl command in which we enter the URL of JIRA ID using curl command and result displays of status of the ticket in it. We need to validate the status of the JIRA ID as part of every commit message done to BitBucket by a developer.
Curl command needs a user id and password in order to produce the above results. How do we authenticate this logic from Bitbucekt server if I place this in server side hooks to validate every commit message to see if it has 1) JIRA ID and 2) Status of ticket without passing my user ID.
Thanks.
Nithin.D