I am trying to get the Changelog to one file and save into the workspace and uploading the same file to hockeyapp from workspace as Postbuild Action using the below commands.
Changelog=$(curl "${BUILD_URL}api/xml?wrapper=changes&xpath=//changeSet//item//msg" | sed -e "s/</msg>//g; s//\`echo -e '\r'`/g; s/</*changes>//g" ) echo -e "$Changelog" > "${WORKSPACE}/"Changelog-${BUILD_NUMBER}.html
The error in console log shows as below.
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn'\''t): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
-->
Can anyone please suggest how we can make it work.