diff --git a/.circleci/config.yml b/.circleci/config.yml index ba00c4414..6876090fc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -363,6 +363,13 @@ jobs: keys: - t1w-v3-{{ epoch }} - t1w-v3- + + - run: + name: Remove old, cached configs + command: | + rm -f /tmp/t1w/work/.mriqc.*.toml + rm -f /tmp/t1w/work/.resources.*.tsv + - run: name: Run participant-level on T1w images no_output_timeout: 2h @@ -378,6 +385,14 @@ jobs: --resource-monitor \ --n_procs 2 --ants-nthreads 1 --ants-float \ --webapi-url http://$( hostname -I | awk '{print $1}' )/api/v1 --upload-strict + + - run: + name: Move temporary but relevant artifacts + command: | + mv /tmp/t1w/work/.mriqc.*.toml /tmp/t1w/derivatives + mv /tmp/t1w/work/.resources.*.tsv /tmp/t1w/derivatives + mv /tmp/t1w/work/.resources.*.png /tmp/t1w/derivatives + - save_cache: key: t1w-v3-{{ epoch }} paths: @@ -408,7 +423,7 @@ jobs: - run: name: Clean-up work directory (just leave reports & commandlines) command: | - find /tmp/t1w/work -type f -not -name "report.rst" -and -not -name "command.txt" -and -not -name ".mriqc.*.toml" -and -not -name ".resources.*.tsv" -delete + find /tmp/t1w/work -type f -not -name "report.rst" -and -not -name "command.txt" -delete - store_artifacts: path: /tmp/t1w/work @@ -503,6 +518,12 @@ jobs: - bold-v2-{{ epoch }} - bold-v2- + - run: + name: Remove old, cached configs + command: | + rm -f /tmp/bold/work/.mriqc.*.toml + rm -f /tmp/bold/work/.resources.*.tsv + - run: name: Run participant-level on BOLD images no_output_timeout: 2h @@ -518,6 +539,12 @@ jobs: --resource-monitor \ --testing --ica \ --webapi-url http://$( hostname -I | awk '{print $1}' )/api/v1 --upload-strict + - run: + name: Move temporary but relevant artifacts + command: | + mv /tmp/bold/work/.mriqc.*.toml /tmp/bold/derivatives + mv /tmp/bold/work/.resources.*.tsv /tmp/bold/derivatives + mv /tmp/bold/work/.resources.*.png /tmp/bold/derivatives - save_cache: key: bold-v2-{{ epoch }} @@ -548,7 +575,7 @@ jobs: - run: name: Clean-up work directory (just leave reports & commandlines) command: | - find /tmp/bold/work -type f -not -name "report.rst" -and -not -name "command.txt" -and -not -name ".mriqc.*.toml" -and -not -name ".resources.*.tsv" -delete + find /tmp/bold/work -type f -not -name "report.rst" -and -not -name "command.txt" -delete - store_artifacts: path: /tmp/bold/work