diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1df546a..4d77de9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -178,7 +178,7 @@ deploy_results: - "collect_results:femc_photon" - "collect_results:femc_pi0" script: - - echo "deploy results!" + - snakemake $SNAKEMAKE_FLAGS --cores 1 results/metadata.json - find results -print | sort | tee summary.txt - xrdfs $XROOTD_RW_ENDPOINT mkdir $XROOTD_OUTPUT_PREFIX/pipeline-$CI_PIPELINE_ID - xrdcp -r results $XROOTD_RW_ENDPOINT/$XROOTD_OUTPUT_PREFIX/pipeline-$CI_PIPELINE_ID diff --git a/Snakefile b/Snakefile index 9c12548..b913cc8 100644 --- a/Snakefile +++ b/Snakefile @@ -86,3 +86,23 @@ rule org2py: """ awk -f {input.converter} {input.notebook} > {output} """ + + +rule metadata: + output: + "results/metadata.json" + shell: + """ +cat > {output} <