'Expecting Ant GLOB pattern, but saw 'C:\Program Files (x86)\Jenkins\workspace\abc.zip

I'm trying to upload my artifacts to S3 Bucket from my Windows Machine using s3 Plugin of Jenkins. Getting error

Expecting Ant GLOB pattern, but saw 'C:\Program Files (x86)\Jenkins\workspace\CD Gateway API\publish.zip.

enter image description here



Solution 1:[1]

You should use some relative path to your directory like: ${WORKSPACE}\MVCWebApplication\obj\octopacked\MVCWebApplication.1.0.${BUILD_NUMBER}.nupkg

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bilal