With Jenkins’ Docker support, a new image is only re-built if the Dockerfile has not changed.
When using the Docker plugin, does the image slowly re-build every time or does a slow re-build only happen if the Dockerfile has changed?
With Jenkins’ Docker support, a new image is only re-built if the Dockerfile has not changed.
When using the Docker plugin, does the image slowly re-build every time or does a slow re-build only happen if the Dockerfile has changed?
Docker pipelines are ephemeral and the environment and state (disk) are destroyed when the pipeline completes. This means when you use the Docker plugin, the Docker plugin cache is destroyed too because it is part of this ephemeral environment.
If you want to maintain state on the host machine (e.g. your Docker cache) you should consider using a different pipeline type. For example, use an exec pipeline which runs directly on the host. See https://docs.drone.io/pipeline/exec/overview/