See this table for the supported worker events and relevant code samples:
Worker | Description | Code Samples |
---|---|---|
Configure Event Driven Workers for Artifactory Event-driven workers are a powerful tool that allows you to automate actions in response to specific events occurring within your Artifactory environment. | ||
Before Download Worker | Triggers before downloading an artifact. For example, verify user permissions to ensure they can download the artifact. NoteAuthorized JFrog Advanced Security (JAS) users can block download of artifacts by before download. For users without JAS, a warning will be logged. For example, log the download activity for analytics purposes. | |
After Download Worker | Triggers when an artifact download process is initiated without waiting for it to complete. | |
Before Create Property Worker | Triggers before creating a property. For example, verify that users can create properties. | |
Before Upload Worker | Triggers before uploading an artifact to cloud storage and without waiting for it to complete. NoteOnly JFrog users with JFrog Advanced Security (JAS) can block upload of artifacts by before upload. For users without JAS, a warning will be logged. For example, verify user permissions to upload an artifact. | |
After Create Worker | Triggers after successfully creating an artifact in the Artifactory Storage. For example, add a property value automatically to a newly created artifact. | |
Before Delete Property Worker | Triggers before deleting a property for an artifact. For example, verify user permissions to delete a property for an artifact. | |
Before Delete Worker | Triggers before deleting an artifact. For example, terminate deleting an artifact based on certain conditions (tagged as production). | |
After Move Worker | Triggers after moving an artifact successfully from one path to another. For example, notify the monitoring team after an artifact is moved. | |
After Build Info Save Worker | Triggers after saving build info. For example, start a CI/CD pipeline immediately after saving build info. | |
Before Copy Worker | Triggers before copying an artifact. For example, terminate copying an artifact based on certain conditions (tagged as deprecated). | |
Before Create Worker | Triggers before creating an artifact in Artifactory Storage. NoteAuthorized JFrog Advanced Security (JAS) users can block upload of artifacts by before create. For users without JAS, a warning will be logged. For example, terminate creating an artifact based on certain conditions (avoid duplicates). | |
Before Move Worker | Triggers before moving an artifact. For example, terminate moving an artifact based on certain conditions (tagged as production). | |
Before Remote Info Worker | Triggers before querying the remote repository for an artifact’s availability. NoteAuthorized JFrog Advanced Security (JAS) users can block download of remote info. For users without JAS, a warning will be logged. For example, add an extra header before reaching a remote repository. | |
After Remote Download Worker | Triggers after downloading a remote artifact. For example, update metadata after successfully downloading a remote artifact. | |
Before Delete Replication Worker | Triggers before replicating a delete action. For example, terminate replicating delete action based on certain conditions (particular artifactory instance). | |
Before Directory Replication Worker | Triggers before replicating a directory. NoteAuthorized JFrog Advanced Security (JAS) users can block replication of directory. For users without JAS, a warning will be logged. For example, terminate replicating a directory based on certain conditions (particular artifactory instance). | |
Before File Replication Worker | Triggers before replicating a file. NoteAuthorized JFrog Advanced Security (JAS) users can block replication of file. For users without JAS, a warning will be logged. For example, terminate replicating a file based on certain conditions (non-production files). | |
Before Property Replication Worker | Triggers before replicating a property. For example, terminate replicating a property based on certain conditions (specific properties). | |
Before Statistics Replication Worker | Triggers before replicating statistics. For example, terminate replicating statistics based on certain conditions (download count). | |
After Copy Worker | Triggers after copying an artifact from one repository to another. For example, log the copy action for audit purposes. | |
After Create Property Worker | Triggers after creating a property. For example, log the create property action for audit purposes or notify another system. | |
After Delete Property Worker | Triggers after deleting a property. For example, notify upon deletion of significant properties. | |
After Delete Worker | Triggers after deleting an artifact. For example, notify upon deletion of significant artifacts. | |
Alt Remote Path Worker | Triggers before accessing a remote path. NoteAuthorized JFrog Advanced Security (JAS) users can block download from alt remote path. For users without JAS, a warning will be logged. For example, ensure the remote path is changed before accessing the old one. | |
Before Remote Download Worker | Triggers before downloading an artifact from a remote repository. NoteAuthorized JFrog Advanced Security (JAS) users can block download of artifacts from remote repository. For users without JAS, a warning will be logged. For example, verify the API token before processing the download. | |
Alt Response Worker | Deprecated | |
Alt All Responses Worker | Triggers before downloading an artifact from a remote path for handling responses. NoteAuthorized JFrog Advanced Security (JAS) users can block download from alt all responses. For users without JAS, a warning will be logged. For example, replace the remote response to add custom information. | |
Alt Remote Content Worker | Triggers before downloading the remote content. NoteAuthorized JFrog Advanced Security (JAS) users can block download of remote content. For users without JAS, a warning will be logged. For example, send alternate content instead of the requested artifact. | |
After Download Error Worker | Triggers after an error occurs while downloading an artifact. For example, monitor and log errors encountered during downloads. | |
Before Download Request Worker | Triggers once a download request has passed all filters (such as authentication), indicating readiness to process the request. NoteAuthorized JFrog Advanced Security (JAS) users can block download of artifacts by before download request. For users without JAS, a warning will be logged. For example, verify user permissions again just before processing the download. | |
Before Build Info Save Worker | Triggers before saving build info. NoteAuthorized JFrog Advanced Security (JAS) users can block publishing of build info. For users without JAS, a warning will be logged. For example, ensure all required metadata is included before saving build info to maintain data integrity. | |
Configure Event Driven Workers for Access Event-driven workers are a powerful tool that allows you to automate actions in response to specific events occurring within your Access environment. | ||
Before Create Token Worker | Triggers before creating a token. For example, verify user permissions to ensure they can create a token. | |
Before Revoke Token Worker | Triggers before revoking a token. For example, verify whether a token is in active use. | |
Before Token Expiry Worker | Triggers before a token expires. For example, send a message to users 24 hours before their token expires. | |
Executes custom code independent of any events in the JFrog Platform. | ||
Triggers at predefined times or intervals using cron expressions. |