|
|
|
@ -9,6 +9,7 @@ kind.
|
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
|
|
|
|
|
|
import datetime
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
from taskgraph.transforms.base import TransformSequence
|
|
|
|
|
from fenix_taskgraph.gradle import get_variant
|
|
|
|
@ -83,7 +84,7 @@ def add_nightly_version(config, tasks):
|
|
|
|
|
|
|
|
|
|
for task in tasks:
|
|
|
|
|
if task.pop("include-nightly-version", False):
|
|
|
|
|
task["run"]["gradlew"].append('-PversionName="{}"'.format(formated_date_time))
|
|
|
|
|
task["run"]["gradlew"].append('-PversionName={}'.format(formated_date_time))
|
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -92,10 +93,10 @@ def add_release_version(config, tasks):
|
|
|
|
|
for task in tasks:
|
|
|
|
|
if task.pop("include-release-version", False):
|
|
|
|
|
# TODO Move GIT_TAG to a parameter
|
|
|
|
|
git_tag = os.environ['GIT_TAG']
|
|
|
|
|
git_tag = os.environ.get('GIT_TAG', 'vUNSET')
|
|
|
|
|
version = git_tag[1:] # remove prefixed "v"
|
|
|
|
|
|
|
|
|
|
task["run"]["gradlew"].append('-PversionName="{}"'.format(version))
|
|
|
|
|
task["run"]["gradlew"].append('-PversionName={}'.format(version))
|
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|