Browse Source

Fix decision task that does not schedule anything on release builds (#14006)

master
Johan Lorenzo 11 months ago
committed by GitHub
parent
commit
d9969a72df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      taskcluster/fenix_taskgraph/parameters.py

+ 4
- 4
taskcluster/fenix_taskgraph/parameters.py View File

@@ -13,7 +13,7 @@ from voluptuous import All, Any, Optional, Range, Required


BETA_SEMVER = re.compile(r'^v\d+\.\d+\.\d+-beta\.\d+$')
PRODUCTION_SEMVER = re.compile(r'^v\d+\.\d+\.\d+(-rc\.\d+)?$')
RELEASE_SEMVER = re.compile(r'^v\d+\.\d+\.\d+(-rc\.\d+)?$')


extend_parameters_schema({
@@ -48,8 +48,8 @@ def resolve_release_type(head_tag):
return ""
elif BETA_SEMVER.match(head_tag):
return "beta"
elif PRODUCTION_SEMVER.match(head_tag):
return "production"
elif RELEASE_SEMVER.match(head_tag):
return "release"
else:
raise ValueError('Github tag must be in semver format and prefixed with a "v", '
'e.g.: "v1.0.0-beta.0" (beta), "v1.0.0-rc.0" (production) or "v1.0.0" (production)')
'e.g.: "v1.0.0-beta.0" (beta), "v1.0.0-rc.0" (release) or "v1.0.0" (release)')

Loading…
Cancel
Save