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
FSL
conda
fsl-ci-rules
Commits
170f987d
Commit
170f987d
authored
Sep 21, 2021
by
Paul McCarthy
🚵
Browse files
MNT: looks like gitlab has changed its date format
parent
f9a1c50a
Changes
3
Hide whitespace changes
Inline
Side-by-side
fsl_ci/__init__.py
View file @
170f987d
...
...
@@ -19,7 +19,7 @@ import subprocess as sp
import
yaml
__version__
=
'0.16.
7
'
__version__
=
'0.16.
8
'
"""Current version of the fsl-ci-rules."""
...
...
fsl_ci/gitlab.py
View file @
170f987d
...
...
@@ -599,10 +599,13 @@ def parse_gitlab_date(datestr):
"""2020-11-13T15:13:48.649Z
"""
timestamp
=
datestr
.
split
(
'.'
)[
0
]
offset
=
datestr
.
split
(
'
Z
'
)[
1
]
offset
=
datestr
.
split
(
'
+
'
)[
1
]
if
offset
==
''
:
offset
=
0
else
:
offset
=
float
(
offset
)
if
offset
==
''
:
offset
=
0
else
:
offset
=
(
datetime
.
datetime
.
strptime
(
offset
,
'%H:%M'
)
-
datetime
.
datetime
(
1900
,
1
,
1
,
0
,
0
)).
seconds
/
3600.0
timestamp
=
datetime
.
datetime
.
strptime
(
timestamp
,
'%Y-%m-%dT%H:%M:%S'
)
offset
=
datetime
.
timezone
(
datetime
.
timedelta
(
hours
=
offset
))
...
...
fsl_ci/utils/trigger_build.py
View file @
170f987d
...
...
@@ -147,8 +147,8 @@ def parseArgs(argv=None):
'token'
:
'Gitlab API access token with read+write access'
,
'server'
:
f
'Gitlab server (default:
{
SERVER_URL
}
)'
,
'project'
:
'Project(s) to build'
,
'production'
:
'
Deploy built package(s) to production cnannel
'
'(default:
deploy to staging channel
)'
'production'
:
'
Build production/stable version
'
'(default:
label built package as staging/development
)'
}
parser
=
argparse
.
ArgumentParser
(
usage
=
usage
,
description
=
desc
)
...
...
Write
Preview
Markdown
is supported
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