CIRCLE_COMPARE_URL does not URL escape caret

The environment variable CIRCLE_COMPARE_URL from can cause issues in other tools that expect the URL to be properly encoded.

The caret (^) is not a valid URL character from what I have read (


The URL that is passed as the environment variable is^...3c546b55628a which contains the invalid caret.

I believe that Circle CI should escape the URL before setting it as an environment variable.

Related post in Gradle forum: