Exemplo n.º 1
0
        public static async System.Threading.Tasks.Task CreateRubyPipeline(BuildRequest br)
        {
            String rubyVersionDash = br.Version.Replace(".", "-");
            String taskName        = String.Format("blimp-ruby-{0}-task", rubyVersionDash);
            String planName        = "blimp-ruby-plan";

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

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

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

            LogInfo("done creating webapp for ruby " + br.Version);
            return;
        }
Exemplo n.º 2
0
        public static async Task<Boolean> CreatePythonHostingStartPipeline(BuildRequest br)
        {
            LogInfo("creating pipeling for python hostingstart " + br.Version);

            String pythonVersionDash = br.Version.Replace(".", "-");
            String taskName = String.Format("blimp-python-hostingstart-{0}-task", pythonVersionDash);
            String planName = "blimp-python-plan";

            LogInfo("creating acr task for python hostingstart " + br.Version);
            String acrPassword = _pipelineUtils.CreateTask(taskName, br.OutputRepoURL, br.OutputRepoBranchName, br.OutputRepoName,
                _secretsUtils._gitToken, br.OutputImageName, _secretsUtils._pipelineToken, useCache: br.UseCache);
            LogInfo("done creating acr task for python hostingstart " + br.Version);

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

            return true;
        }