예제 #1
0
파일: TFTB.cs 프로젝트: hopenbr/HopDev
 /// <summary>
 /// This will update the build quality for the build 
 /// </summary>
 /// <param name="env">The environment you want the build to be in, 
 /// ex/ Assembly will change build quality "In-Assembly" 
 /// </param>
 /// <returns></returns>
 public bool ChangeBuildQuality(Enviroments env)
 {
     return (ChangeBuildQuality("In-" + env.ToString()));
 }
예제 #2
0
파일: TFTB.cs 프로젝트: hopenbr/HopDev
        /// <summary>
        /// This will deploy the build package to the given test environment
        /// </summary>
        /// <param name="env"></param>
        /// <returns></returns>
        public bool DeployBuildTo(Enviroments env)
        {
            bool _wasSuccessfullyDeployed = true;

            //reason for this duoble change of buildQuality
            //The Deployer has a set path of how builds can be deploy to and from
            //there4 you cannot deploy from some env to others, but you can redeploy
            //to any env.  This way we can ensure that we get a deployer triggered
            //running a redeploy,
            //which is change the BQ to In-env then change it again to Deploy2-env
            //ex/ if deploying to IRB you would first change the BQ to "In-IRB" then
            //change it to "Deploy2-IRB"

            foreach (string _app in _bqAppend)
            {
                string _bq = _app + env.ToString();

                if (_bq.Equals("In-IRB"))
                {
                    _bq = "In-PrePrd";
                    // IRB is only env that does not have redeploys set up
                }

                _wasSuccessfullyDeployed = ChangeBuildQuality(_bq);
            }

            return (_wasSuccessfullyDeployed);
        }