Hi Team,
I'm trying to download the Release notes from my Jenkins Pipeline and trying to get the HTML from the below URL.
https://domain.name/jira/secure/ReleaseNote.jspa?version=48988&styleName=Html&projectId=16908
I'm getting the cookie from the rest api as follows
curl -X POST https://domain.name/jira/rest/auth/1/session -H 'content-type: application/json' -d '{ "username": "myuser", "password": "mypassword" }'
I'm constructing the curl command with cookie as shown below
curl -H "X-Atlassian-Token: no-check" -H "Cookie: JSESSIONID=${cookie}" https://domain.name/jira/secure/ReleaseNote.jspa?version=${jira_version}&styleName=Text&projectId=${project_id}
I tried sending username and password but didnt work. Hence trying the cookie way. But If i send the cookie that i get by logging in from UI, the Curl request works. But if I generate the Cookie from rest api and pass it, it fails.
1. Is there a better way to get the Release Notes in an automated fashion?
2. How to get the above curl request to work with a proper authentication mechanism?
Any help is highly appreciated. Thanks in advance