removing the changelog at the end was causing jenkins to act up.. So I moved it to rignt before it start appending text to the file..