# CIRCLE\_COMPARE\_URL empty on workflow rerun

**URL:** <https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927>\
**Category:** Bug Reports\
**Created:** [September 6, 2018, 9:17am UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927 "2018-09-06T09:17:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpadourek](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mpadourek/32/19089_2.png) [@mpadourek](https://discuss.circleci.com/u/mpadourek)\
**Post date:** [September 6, 2018, 9:17am UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/1 "2018-09-06T09:17:12Z")

</div>

We are making use of CIRCLE\_COMPARE\_URL to only run tests/build and deploy artifacts incrementally based on what changes. We use that on PRs but also when they get merged to master. What we have noticed now, it works fine when the build on master runs the first time, but if it fails due to some reason (network connectivity issue, wrong env variable, etc) and then we hit the button “rerun workflow” then CIRCLE\_COMPARE\_URL is empty and our pipeline passes without having built anything. It would be great if this variable can still be set on rerun so we can consistently test the same things in the same rerun build.

---

<div class="post-metadata">

**Author:** ![mpadourek](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mpadourek/32/19089_2.png) [@mpadourek](https://discuss.circleci.com/u/mpadourek)\
**Post date:** [October 17, 2018, 12:59pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/2 "2018-10-17T12:59:13Z")

</div>

Any update/comment on this? This popping up every so often and a bit annoying whenever it happens.

---

<div class="post-metadata">

**Author:** ![hayfield](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hayfield](https://discuss.circleci.com/u/hayfield)\
**Post date:** [November 9, 2018, 9:27am UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/3 "2018-11-09T09:27:42Z")

</div>

This is also impacting our team.

Our use case is using it as a link to a diff of changes to include in a centralised log of deploys. This enables us to have a link to quickly see what changed with each deploy.

`CIRCLE_PULL_REQUESTS` cannot be used for this purpose since we are running workflows on all commits, not just PRs.

---

<div class="post-metadata">

**Author:** ![morganfree](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@morganfree](https://discuss.circleci.com/u/morganfree)\
**Post date:** [January 16, 2019, 1:58pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/4 "2019-01-16T13:58:51Z")

</div>

We try to run jobs conditionally based on changes on push. Empty compare url on workflow rerun makes this approach completely unreliable. Can you please give us some information about the status of this issue?

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [January 16, 2019, 7:42pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/5 "2019-01-16T19:42:39Z")

</div>

I believe that CircleCI are happy to receive bug reports by email now. Ping them on `support@circleci.com` - I expect that would create a ticket.

If someone in this thread does create a ticket, please add updates here for the benefit of other users.

---

<div class="post-metadata">

**Author:** ![alexfdz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexfdz/32/21183_2.png) [@alexfdz](https://discuss.circleci.com/u/alexfdz)\
**Post date:** [February 1, 2019, 12:49pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/6 "2019-02-01T12:49:01Z")

</div>

@mpadourek Does it work at all for workflows (not single builds)?

Another thread is suggesting (I have the same issue) that _CIRCLE\_COMPARE\_URL_ is always empty in a workflow execution.

[CIRCLE\_COMPARE\_URL is empty when running a workflow job](https://discuss.circleci.com/t/circle-compare-url-is-empty-when-running-a-workflow-job/25299)

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [February 7, 2019, 4:12pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/7 "2019-02-07T16:12:37Z")

</div>

This is a known limitation with the way we handle Workflows.

We are looking to resolve it, but the [https://circleci.com/orbs/registry/orb/iynere/compare-url](https://circleci.com/orbs/registry/orb/iynere/compare-url) Orb provides a usable workaround in most cases. Please let us know if this doesn’t help in your case.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [February 17, 2019, 4:12pm UTC](https://discuss.circleci.com/t/circle-compare-url-empty-on-workflow-rerun/24927/8 "2019-02-17T16:12:38Z")

</div>

Closed on February 17, 2019, 4:12pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
