I fear that this may be a duplicate of some issue and if so I apologize. Permit me to describe what I would like in full and perhaps the community could point me to the components.
My Setup:
- docker-mac kubernetes cluster.
- Jenkins running as a service in my local cluster using nginx-ingress at something like jenkins.local.com.
- ~/jenkins_home on my local machine is mapped to /var/jenkins_home in the container image thus exposing my localhost filesystem
- ~/code/github exposed to /var/github on the container image as well.
I keep my various repositories in ~/code/github or ~/code/scm in general. The behavior I would like is as follows...
- I make a commit, locally, not pushed to any branch on ~/code/github/my_project.
- Jenkins sees this in its filesystem and triggers a build by running the Jenkinsfile of ~/code/github/my_project/Jenkinsfile
This would provide me with a development loop for local development based on Jenkins that could provide me with quick feedback on tests without me pushing to a branch on the scm.
What are my options for making Jenkins react to each commit in this way?