Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1460487 - Update mozharness to set MOZ_SOURCE_CHANGESET for comm …
Browse files Browse the repository at this point in the history
…builds. r=dustin

about:buildconfig on Thunderbird shows an incorrect mercurial source URL
that's a comm- repo, but a mozilla- changeset revision.

For Taskcluster builds at least, MOZ_SOURCE_CHANGESET is set as an environment
variable by mozharness. During the build, build/variables.py writes out
source-repo.h with a few defines, including MOZ_SOURCE_URL that gets picked
up by buildconfig.html.

Differential Revision: https://phabricator.services.mozilla.com/D7151
  • Loading branch information
jfx2006 committed Oct 1, 2018
1 parent 4602ca7 commit 8ad369c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taskcluster/taskgraph/transforms/job/mozharness.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def mozharness_on_docker_worker_setup(config, job, taskdesc):
if config.params.is_try():
env['TRY_COMMIT_MSG'] = config.params['message']

if run['comm-checkout']:
env['MOZ_SOURCE_CHANGESET'] = env['COMM_HEAD_REV']

# if we're not keeping artifacts, set some env variables to empty values
# that will cause the build process to skip copying the results to the
# artifacts directory. This will have no effect for operations that are
Expand Down

0 comments on commit 8ad369c

Please sign in to comment.