Refactor script chain to pass needed arguments from jenkins through rpm building