Jenkinsfile Pipeline do something when some checked-in file is changed / newly checked out / run in a fresh node

I’m trying to find a way to run some optional code in case a specific file is changed / newly checked out / run in a fresh node.

Specifically I’m trying to rebuild a Dockerfile which is used for the following build-steps only whenever the Dockerfile that’s checked in actually changes.

  • How to use host network while linking to a container?
  • installing a GCC compiler onto a Docker Container
  • Using gitlab ci with docker compose leaves me with container generated folders gitlab can't remove
  • Why does Volumes of CreateContainerOptions take a map[string]struct{}?
  • docker golang API ContainerList fails with TLS
  • Having trouble automating docker containers with laravel
  • Any pointers are much appreciated!

  • docker postgres data on build step
  • Spring boot app location inside docker container
  • SSH connection fails to disconnect
  • Building Docker images using Jenkins results in “Unsupported protocol scheme found”
  • Mounting local volumes to docker container
  • Start Docker Containers on logon under Windows
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.