Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCData
lhc-sm-hwc
Commits
46ed8fe4
Commit
46ed8fe4
authored
Oct 26, 2021
by
Agata Malgorzata Chadaj
Browse files
wip
parent
3bf89f45
Changes
2
Hide whitespace changes
Inline
Side-by-side
CI/Jenkinsfile
View file @
46ed8fe4
...
...
@@ -19,6 +19,13 @@ pipeline {
sh
"./CI/setup.sh ${params.notebook} ${params.circuit_name} ${params.discharge_level} \"${params.start_time}\" \"${params.end_time}\" ${params.API_BRANCH} ${params.NB_BRANCH}"
}
}
stage
(
'Send analysis results'
)
{
steps
{
sh
'python send_results.py'
}
}
}
post
{
...
...
CI/send_results.py
0 → 100644
View file @
46ed8fe4
"""This script is a workaround as we didn't manage to install papermill as script in the Jenkins pipeline"""
import
papermill
as
pm
import
argparse
def
_get_arg_parser
():
"""Specifies script arguments. Returns parser.
"""
parser
=
argparse
.
ArgumentParser
(
description
=
'Runs notebook with papermill.'
)
parser
.
add_argument
(
'notebook'
)
parser
.
add_argument
(
'circuit_name'
)
parser
.
add_argument
(
'discharge_level'
)
parser
.
add_argument
(
'start_time'
)
parser
.
add_argument
(
'end_time'
)
return
parser
if
__name__
==
'__main__'
:
args
=
_get_arg_parser
().
parse_args
()
parameters
=
{
'circuit_name'
:
args
.
circuit_name
,
'discharge_level'
:
int
(
args
.
discharge_level
),
'start_time'
:
args
.
start_time
,
'end_time'
:
args
.
end_time
}
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