示例#1
0
        public static async Task <Boolean> CreateNodeHostingStartPipeline(BuildRequest br)
        {
            String nodeVersionDash = br.Version.Replace(".", "-");
            String taskName        = String.Format("appsvcbuild-node-hostingstart-{0}-task", nodeVersionDash);
            String planName        = "appsvcbuild-node-plan";

            LogInfo("creating acr task for node hostingstart " + br.Version);
            String acrPassword = _pipelineUtils.CreateTask(taskName, br.OutputRepoURL, _secretsUtils._gitToken, br.OutputImageName, _secretsUtils._pipelineToken);

            LogInfo("done creating acr task for node hostingstart " + br.Version);

            LogInfo("creating webapp for node hostingstart " + br.Version);
            String cdUrl = _pipelineUtils.CreateWebapp(br.Version, _secretsUtils._acrPassword, br.WebAppName, br.OutputImageName, planName);

            LogInfo("done creating webapp for node hostingstart " + br.Version);

            return(true);
        }
示例#2
0
        public static async System.Threading.Tasks.Task CreateRubyHostingStartPipeline(BuildRequest br)
        {
            String rubyVersionDash = br.Version.Replace(".", "-");
            String taskName        = String.Format("appsvcbuild-ruby-hostingstart-{0}-task", rubyVersionDash);
            String planName        = "appsvcbuild-ruby-hostingstart-plan";

            LogInfo("creating acr task for ruby hostingstart" + br.Version);
            String acrPassword = _pipelineUtils.CreateTask(taskName, br.OutputRepoURL, _secretsUtils._gitToken, br.OutputImageName, _secretsUtils._pipelineToken);

            LogInfo("done creating acr task for ruby hostingstart" + br.Version);

            LogInfo("creating webapp for ruby hostingstart " + br.Version);
            String cdUrl = _pipelineUtils.CreateWebapp(br.Version, _secretsUtils._acrPassword, br.WebAppName, br.OutputImageName, planName);

            LogInfo("done creating webapp for ruby hostingstart " + br.Version);
            return;
        }