0

Is it possible to create some kind of directory watcher and trigger a script when the folder is not empty?

I have a CentOS machine with jenkins CI on it. i would like to create a job that will move all build artifacts to my web server folder each successful build. is it possible?

I want to avoid timed triggered cronjob.

Ori Price
  • 207

1 Answers1

0

Use inotifywait it can monitor a directory, check this answer.

X Tian
  • 10,463