If you want to trigger a Jenkins build when you’re deploying artifacts, there’s a Jenkins plugin available to help you to do this. Called URLTrigger, it can be configured to watch for specific changes taking place within designated URLs. When changes occur, they’ll initiate the build trigger.
For example, you can configure URLTrigger to watch for changes in the JSON file that is produced from the file list REST API, which can be accessed via the following URI:
http://localhost:8081/artifactory/api/storage/<PATH_TO_FOLDER_OR_REPO>/
The plugin periodically polls for changes within this URL and triggers a build if two consecutive calls return different JSONs (they’ll be different if a new artifact has been deployed).
Note: Be sure to fill in your credentials in the plugin’s configuration settings. This will allow it to execute an authentication every time it submits a request to the file list.