Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
b3b017e9
Commit
b3b017e9
authored
6 years ago
by
Pavel KORSHUNOV
Browse files
Options
Downloads
Patches
Plain Diff
ignore non-version tags, build wait time 2 hours
parent
c0ea345d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/release_bob.py
+3
-2
3 additions, 2 deletions
release/release_bob.py
with
3 additions
and
2 deletions
release/release_bob.py
+
3
−
2
View file @
b3b017e9
...
@@ -139,7 +139,8 @@ def get_latest_tag_name(gitpkg):
...
@@ -139,7 +139,8 @@ def get_latest_tag_name(gitpkg):
if
not
latest_tags
:
if
not
latest_tags
:
return
None
return
None
# create list of tags' names but ignore the first 'v' character in each name
# create list of tags' names but ignore the first 'v' character in each name
tag_names
=
[
tag
.
name
[
1
:]
for
tag
in
latest_tags
]
# also filter out non version tags
tag_names
=
[
tag
.
name
[
1
:]
for
tag
in
latest_tags
if
StrictVersion
.
version_re
.
match
(
tag
.
name
[
1
:])]
# sort them correctly according to each subversion number
# sort them correctly according to each subversion number
tag_names
.
sort
(
key
=
StrictVersion
)
tag_names
.
sort
(
key
=
StrictVersion
)
# take the last one, as it is the latest tag in the sorted tags
# take the last one, as it is the latest tag in the sorted tags
...
@@ -282,7 +283,7 @@ def wait_for_pipeline_to_finish(gitpkg, pipeline_id, dry_run=False):
...
@@ -282,7 +283,7 @@ def wait_for_pipeline_to_finish(gitpkg, pipeline_id, dry_run=False):
"""
"""
sleep_step
=
30
sleep_step
=
30
max_sleep
=
6
0
*
60
#
one
hour
max_sleep
=
12
0
*
60
#
two
hour
s
# pipeline = get_last_pipeline(gitpkg, before_last=before_last)
# pipeline = get_last_pipeline(gitpkg, before_last=before_last)
print
(
'
Waiting for the pipeline {0} of package {1} to finish. Do not interrupt.
'
.
format
(
pipeline_id
,
gitpkg
.
name
))
print
(
'
Waiting for the pipeline {0} of package {1} to finish. Do not interrupt.
'
.
format
(
pipeline_id
,
gitpkg
.
name
))
...
...
This diff is collapsed.
Click to expand it.
Pavel KORSHUNOV
@pkorshunov
mentioned in issue
#81 (closed)
·
6 years ago
mentioned in issue
#81 (closed)
mentioned in issue #81
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment