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.

  • Timeout pushing image to nexus inside container docker
  • Running mysql_upgrade in Docker?
  • How do I serve static files from either gunicorn or nginx
  • Finding Containers Using Docker VirtualBox
  • Docker-compose Adding Postgres Password
  • seafile docker - how to persist config/make container disposable
  • Any pointers are much appreciated!

  • Manually running container exists with code 145
  • How to setup connectivity between docker and dockerhub to pull images?
  • Selenium node/chrome docker image and selenium/hub docker image in different host machines
  • docker-java/docker remote api block until container is finished
  • What is the difference between the size and the virtual size of the docker images?
  • Liberoffice headless docker with endless response
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.