Fixes 949711 - build analysis before syncing folder to build artifact

Right now we build the target AFTER we sync its artifact to the payload. We're always getting last builds analysis folder that is lingering around the workspace. This reverses the order so that it builds before it syncs.