Commit 10f8beaf authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

update pipeline setup

parent aa7a601d
Pipeline #3167383 canceled with stage
......@@ -8,11 +8,6 @@ pipeline {
}
}
options {
buildDiscarder(logRotator(numToKeepStr: "32"))
disableConcurrentBuilds()
}
stages {
stage('Notebook run') {
steps {
......@@ -20,7 +15,7 @@ pipeline {
kerberosAuth('mpesoft', '/user/mpesoft/mpesoft.keytab')
sh 'chmod +x ./CI/env_setup.sh'
sh 'chmod +x ./CI/setup.sh'
sh "./CI/setup.sh ${params.notebook} ${params.hwc_test} ${params.circuit_name} ${params.campaign} \"${params.t_start}\" \"${params.t_end}\" ${params.API_BRANCH} ${params.NB_BRANCH}"
sh "./CI/setup.sh ${params.notebook} ${params.circuit_name} ${params.discharge_level} \"${params.start_time}\" \"${params.end_time}\" ${params.API_BRANCH} ${params.NB_BRANCH}"
}
}
}
......
......@@ -8,11 +8,10 @@ def _get_arg_parser():
"""
parser = argparse.ArgumentParser(description='Runs notebook with papermill.')
parser.add_argument('notebook')
parser.add_argument('hwc_test')
parser.add_argument('circuit_name')
parser.add_argument('campaign')
parser.add_argument('t_start')
parser.add_argument('t_end')
parser.add_argument('discharge_level')
parser.add_argument('start_time')
parser.add_argument('end_time')
return parser
......@@ -22,11 +21,10 @@ if __name__ == '__main__':
pm.execute_notebook(
args.notebook,
'./output/result.ipynb',
parameters={'hwc_test': args.hwc_test,
'circuit_name': args.circuit_name,
'campaign': args.campaign,
't_start': args.t_start,
't_end': args.t_end
parameters={'circuit_name': args.circuit_name,
'discharge_level': args.discharge_level,
'start_time': args.start_time,
'end_time': args.end_time
},
engine_name='nxcals_engine'
)
Supports Markdown
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