Using below code i am able to download srww_1.2.3.4.dmg file but file version number will change daily so i cannot hardcode filename.
How to download file without hardcoding file name.
wget "https://test.com/job/testreport/job/${{parameters.test_buildjob}}/lastSuccessfulBuild/artifact/directrs/srww_1.2.3.4.dmg" --no-check-certificate --http-user=$(USERNAME) --http-password=$(PASSWORD) --auth-no-challenge --no-verbose -O srww_1.2.3.4.dmg
Please help me.