Bug 1915790 - fix buildconfig.diff artifact location. r=jlorenzo

We expose the /builds/worker/artifacts dir as artifacts, but the
buildconfig source-test task was writing elsewhere; this was missed in
the firefox-android migration from github.

Differential Revision: https://phabricator.services.mozilla.com/D220656
This commit is contained in:
Julien Cristau 2024-08-30 08:27:56 +00:00
parent 2d92259aee
commit 418e4ecc7a

View File

@ -12,9 +12,7 @@ import sys
from update_buildconfig_from_gradle import main as update_build_config
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
PROJECT_DIR = os.path.realpath(os.path.join(CURRENT_DIR, "..", "..", ".."))
OUTPUT_DIR = os.path.join(PROJECT_DIR, "artifacts")
OUTPUT_DIR = os.environ.get("ARTIFACTS_DIR", "/builds/worker/artifacts")
BUILDCONFIG_DIFF_FILE_NAME = "buildconfig.diff"
BUILDCONFIG_DIFF_FILE = os.path.join(OUTPUT_DIR, BUILDCONFIG_DIFF_FILE_NAME)
BUILDCONFIG_FILE_NAME = ".buildconfig.yml"