I’m trying to set up a pipeline that would have the following logic of jobs :
first tests in the runner
signing an ssh key for external server access (copy in a cache folder)
new tests on external server thanks to the key
deploy on server thanks to the key
I was thinking of using the cache mechanism … but it’s persistent between different pipelines:
“By default caching is enabled and shared between pipelines and jobs, starting from GitLab 9.0”
I do not want to trust of the users by asking to think well to delete the cache at the end of the pipeline (some actions are manual … and therefore entails a risk of access to the cache).
I tried to use the artifacts … but they become available via the interface … and I can only define their duration.
Is there a way to pass between certain jobs of a pipeline some files in a secure way and limited to this single pipeline?