[backend] support trees in copybuild, support 'setrelease' parameter