constructing build and deploy script for pipeline