Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ESCAPE2020
WP3
eossr
Commits
00c674a8
Commit
00c674a8
authored
Apr 21, 2022
by
Vuillaume
Browse files
Merge branch 'hotfix' into 'master'
Fix check connection zenodo See merge request
!200
parents
bb483b6d
4d97f00b
Pipeline
#173236
passed with stages
in 8 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
.gitlab-ci.yml
.gitlab-ci.yml
+10
-9
eossr/scripts/check_connection_zenodo.py
eossr/scripts/check_connection_zenodo.py
+1
-2
No files found.
.gitlab-ci.yml
View file @
00c674a8
...
...
@@ -56,15 +56,16 @@ test_ci_eossr:
stage
:
test
trigger
:
escape2020/wp3/test_eossr
test_codemeta_ingestion
:
stage
:
test
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
script
:
-
eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
$CI_DEFAULT_BRANCH'
-
changes
:
-
codemeta.json
#test_codemeta_ingestion:
# stage: test
# image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:dev
# script:
# - eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
# rules:
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
# - changes:
# - codemeta.json
build_docker
:
...
...
eossr/scripts/check_connection_zenodo.py
View file @
00c674a8
#!/usr/bin/env python
import
argparse
from
distutils.util
import
strtobool
from
eossr.api.zenodo
import
ZenodoAPI
...
...
@@ -42,7 +41,7 @@ def main():
args
=
build_argparser
().
parse_args
()
zenodo
=
ZenodoAPI
(
access_token
=
args
.
zenodo_token
,
sandbox
=
args
.
sandbox
_flag
)
zenodo
=
ZenodoAPI
(
access_token
=
args
.
zenodo_token
,
sandbox
=
args
.
sandbox
)
zenodo
.
check_upload_to_zenodo
(
args
.
project_dir
)
...
...
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