Your worker is enabled and you can test it in a real context.
Go to the Artifacts page and upload a jar file to the repository “maven” using the following information, which does not match the repository path that we defined for the worker:
Figure 15 - The artifact deployment popup with a configuration that uses a layout that does not match the pattern we defined in our worker.
The result is that the upload is canceled and an error message is generated:
Figure 16 - The artifact deployment popup showing an error message for the deployment.
Next, run a test using the following configuration. This time your upload should succeed:
Figure 17 - An example of a deployment configuration that matches the layout pattern we defined in our worker.
NOTE: Multiple uploads trigger multiple execution requests, one per file. If you send a JSON file and a jar file at the same time, Artifactory will handle them as if they were independent uploads and it will result in only one file being uploaded. In this case, the deployment will fail because not all the files would have been downloaded successfully.
Figure 18 - Example of a multi-file deployment.
Figure 19 - The multi-file deployment result. It shows that the file with the “json” extension has not been deployed because it does not match the layout pattern we defined in our worker.
Go to the Artifacts page and upload a jar file to the repository “maven” using the following information, which does not match the repository path that we defined for the worker:
Figure 15 - The artifact deployment popup with a configuration that uses a layout that does not match the pattern we defined in our worker.
The result is that the upload is canceled and an error message is generated:
Figure 16 - The artifact deployment popup showing an error message for the deployment.
Next, run a test using the following configuration. This time your upload should succeed:
Figure 17 - An example of a deployment configuration that matches the layout pattern we defined in our worker.
NOTE: Multiple uploads trigger multiple execution requests, one per file. If you send a JSON file and a jar file at the same time, Artifactory will handle them as if they were independent uploads and it will result in only one file being uploaded. In this case, the deployment will fail because not all the files would have been downloaded successfully.
Figure 18 - Example of a multi-file deployment.
Figure 19 - The multi-file deployment result. It shows that the file with the “json” extension has not been deployed because it does not match the layout pattern we defined in our worker.