Bug 1412690 - fennec version bump in-tree task. r=aki

This patch adds the initial `release-version-bump` kind, and adds it to
the `publish_fennec` `target_tasks_method`.

It also adds support for `next_version`.

MozReview-Commit-ID: 9YRswddeuZ3
This commit is contained in:
Rok Garbas
2017-10-29 17:25:01 -07:00
parent ac5aead3be
commit 835074b626
5 changed files with 59 additions and 3 deletions

View File

@@ -414,6 +414,9 @@ def get_release_config(config, force=False):
"""
release_config = {}
if force or config.params['target_tasks_method'] in BEETMOVER_RELEASE_TARGET_TASKS:
next_version = str(os.environ.get("NEXT_VERSION", ""))
if next_version != "":
release_config['next_version'] = next_version
build_number = str(os.environ.get("BUILD_NUMBER", 1))
if not build_number.isdigit():
raise ValueError("Release graphs must specify `BUILD_NUMBER` in the environment!")