Skip to content

Instantly share code, notes, and snippets.

@unakatsuo
Created November 9, 2017 09:37
Show Gist options
  • Save unakatsuo/e5c6ee665dce131c3f36afaf64ceac2d to your computer and use it in GitHub Desktop.
Save unakatsuo/e5c6ee665dce131c3f36afaf64ceac2d to your computer and use it in GitHub Desktop.
inotifywait patterns for Jenkins multiple branch jobs folder.
# New build started
/var/lib/jenkins/jobs/citest/branches/master/builds/ CREATE,ISDIR 28
# log modified
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ MODIFY log
# The last log update
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ CLOSE_WRITE,CLOSE log
# a build stage finished
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ MOVED_TO build.xml
# a build for the build finished.
# 1. Hard to identify the build ID.
/var/lib/jenkins/jobs/citest/branches/master/builds/ CLOSE_NOWRITE,CLOSE,ISDIR
# 2. Closing log file is another possible signal.
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ CLOSE_WRITE,CLOSE log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment