Jenkins Execute shell commands with wildcards

I am trying to get Jenkins to execute a shell command but still allow wildcards to be used. Here's what I'm trying to do for reference:

mvn deploy:deploy-file -Dpackaging=jar -DrepositoryId=snapshots -Durl=http://nexus.example.net/content/repositories/snapshots -DpomFile=Spigot/Spigot-Server/pom.xml -Dfile=Spigot/Spigot-Server/target/spigot-*.jar

I need to be able to deploy this jar through the above command because the git repository for that project isn't owned or operated by me, so I need to be able to deploy it directly to my own Nexus instance. In order to ensure that it will support all possible versions of the compiled jar, I must use a wild card. Unfortunately, when Jenkins tries to execute the command, it takes the wildcard literally. I'm really not sure how to solve this, I would appreciate any help you can provide. Thank you!

Jon Skeet
people
quotationmark

If you mean you just want the * to be passed on directly, just use single quotes to avoid the shell from applying globbing:

mvn deploy:deploy-file [...] '-Dfile=Spigot/Spigot-Server/target/spigot-*.jar'

people

See more on this question at Stackoverflow