Commit 46ed8fe4 authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent 3bf89f45
......@@ -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 {
......
"""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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment