Setting environment and build value within a cycle