Details
-
Suggestion
-
Resolution: Duplicate
Description
My typical "Release and deploy" pipeline consists of the following steps:
- run tests
- build new docker image and push it to a registry
- deploy that image to kubernetes
From pipeline output I see that every step starts from "Build setup" where repo is cloned and git is configured with different params. Sometimes this setup can take up to 1 minute.
However, the repo initialisation is needed only on certain pipeline steps, such as tests running and docker image building, and there is no point to do it on the last deployment step.
Skipping the repo initialisation in that case can nicely reduce the pipeline execution time.
I would like to have a way to specify "clone" setting at specific step with value "no" (0 or whatever) which will allow me to skip that repo cloning