Finally set up jenkins according to the best practises: build script is now separated to .sh-file and .cos-file, and it's under source control from now on (except for credentials). Also fix 8360 wrong arguments order error.