How to use curl command with a wildcard for deploying an artifact to Jfrog Artifactory repo.
I'm trying to use the below from Jenkins pipeline script, and getting an error.
stage 'Deploy Aritfacts to Artifactory'
withCredentials([usernameColonPassword(credentialsId: '<enter credentials ID>', variable: 'password')]) {
sh " curl -k -u $password -T ${WORKSPACE}/soureCode/integration/dan-0.0.1-SNAPSHOT.zip "https://<enter artifactory URL>/maven-prereleases-local/com/dan/ "
When you run a build, it actually generates an artifact dan-0.0.1-SNAPSHOT.zip, I'm trying to use a wildcard for artifact version, instead of using a hardcode version. but got an error as shown below
curl: Can't open '/bld/workspace/demoPipeline/soureCode/integration/dan-*-SNAPSHOT.zip'!
curl: try 'curl --help' or 'curl --manual' for more information
Finished: FAILURE