Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaba
fenix
Commits
d9969a72
Unverified
Commit
d9969a72
authored
Aug 21, 2020
by
Johan Lorenzo
Committed by
GitHub
Aug 21, 2020
Browse files
Fix decision task that does not schedule anything on release builds (#14006)
parent
c41a60ef
Changes
1
Show whitespace changes
Inline
Side-by-side
taskcluster/fenix_taskgraph/parameters.py
View file @
d9969a72
...
...
@@ -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
)'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment