I would like to attached the pdf file to jira from teamcity, how to attached pdf file with prefix e.g. finalExecution202005.pdf ? (here prefix 'finalExecution' is always fixed)
working command: i.e. curl -D- -u %env.JIRAUSER%:%env.JIRAPWD% -X POST -H "X-Atlassian-Token: no-check" -F "file=@finalExecution202005.pdf" http://myhost/rest/api/2/issue/%env.JIRAID%/attachments
after every run filename change so would like to search it through prefix
not working command: i.e. curl -D- -u %env.JIRAUSER%:%env.JIRAPWD% -X POST -H "X-Atlassian-Token: no-check" -F "file=@finalExecution*.pdf" http://myhost/rest/api/2/issue/%env.JIRAID%/attachments
here either i have to used wildcards in filename, but not sure how it work ? or some logic which first search exact filename & then replace that name into url cmd
additional info i am running all my steps on windows agent