I am trying to figure out how to retrieve all build artifacts from the last successful build via wget. I never know what the file names will be but I do know that the file types are always rpms. Both the TeamCity server and the machine where I am tring to retrieve the files to are Linux boxes. I am running into 2 problems:
1) I always have to login in the server.
Can I get the files as a guestuser? If so how?
2) I don't know the whole file name because a build number is part of the name.
Whatever I try doesn't get the artifacts only the login page.
This is what I have tried recently and it doesn't seem to work:
wget -r -l1 --no-host-directories --no-parent -A.rpm --user="" --http-passwd="]]>" "http://buildserver.com:8111/viewArtifacts.html/buildTypeId/bt19/buildId/lastSuccessful/"