I have a gitlab-ci configuration that looks something like this:
simulate:
stage: simulate
when: manual
script:
- "do simulation in matlab"
artifacts:
paths:
- results/*.mat
analyze:
stage: analyze
script:
- "do analysis in matlab"
dependencies:
- simulate
The analyze
job needs the artifact from the simulate
job.
However, the simulate
job takes several hours to run, thus, I made it manual, so it does not run every time the pipeline runs.
The situation as it is: If I do not run the simulation, I can not run the analysis. (The analysis makes no sense without the data from the simulation.)
Let's say I did not change the simulation code, just the analysis code. Then it would be convenient to run the analyze
job with the artifact of a older pipeline. Is this possible? And how?