Exemplo n.º 1
0
        private void Execute(string result, string operation)
        {
            var command = new PipelineCommandBuilder("task.complete", operation)
                          .AddProperty(nameof(result), result)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 2
0
        private void Execute(int value, string operation)
        {
            var command = new PipelineCommandBuilder("task.setprogress", operation)
                          .AddProperty(nameof(value), value)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 3
0
        private void Execute(string artifactname, string containerfolder, string path)
        {
            var command = new PipelineCommandBuilder("artifact.upload", path)
                          .AddProperty(nameof(containerfolder), containerfolder)
                          .AddProperty(nameof(artifactname), artifactname)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 4
0
        private void Execute(string artifactname, string type, string location)
        {
            var command = new PipelineCommandBuilder("artifact.associate", location)
                          .AddProperty(nameof(artifactname), artifactname)
                          .AddProperty(nameof(type), type)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 5
0
        private void Execute(string type, string name, string path)
        {
            var command = new PipelineCommandBuilder("task.addattachment", path)
                          .AddProperty(nameof(type), type)
                          .AddProperty(nameof(name), name)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 6
0
        private void Execute(bool issecret, bool isoutput, string variable, string value)
        {
            var command = new PipelineCommandBuilder("task.setvariable", value)
                          .AddProperty(nameof(issecret), issecret)
                          .AddProperty(nameof(isoutput), isoutput)
                          .AddProperty(nameof(variable), variable)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 7
0
        private void Execute(string id, string field, string key, string value)
        {
            var command = new PipelineCommandBuilder("task.setendpoint", value)
                          .AddProperty(nameof(id), id)
                          .AddProperty(nameof(field), field)
                          .AddProperty(nameof(key), key)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 8
0
        private void Execute(string sourcepath, int?linenumber, int?columnnumber, string code, string type, string message)
        {
            var command = new PipelineCommandBuilder("task.logissue", message)
                          .AddProperty(nameof(sourcepath), sourcepath)
                          .AddProperty(nameof(linenumber), linenumber)
                          .AddProperty(nameof(columnnumber), columnnumber)
                          .AddProperty(nameof(type), type)
                          .AddProperty(nameof(code), code)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 9
0
        private void Execute(string id, string parentid, string type, string name, string order, string starttime, string finishtime,
                             int?progress, string state, string result, string operation)
        {
            var command = new PipelineCommandBuilder("build.logdetail", operation)
                          .AddProperty(nameof(id), id)
                          .AddProperty(nameof(parentid), parentid)
                          .AddProperty(nameof(type), type)
                          .AddProperty(nameof(name), name)
                          .AddProperty(nameof(order), order)
                          .AddProperty(nameof(starttime), starttime)
                          .AddProperty(nameof(finishtime), finishtime)
                          .AddProperty(nameof(progress), progress)
                          .AddProperty(nameof(state), state)
                          .AddProperty(nameof(result), result)
                          .Build();

            Console.WriteLine(command);
        }
Exemplo n.º 10
0
        private void Execute(string path)
        {
            var command = new PipelineCommandBuilder("task.uploadsummary", path).Build();

            Console.WriteLine(command);
        }
Exemplo n.º 11
0
        private void Execute(string path)
        {
            var command = new PipelineCommandBuilder("build.addbuildtag", path).Build();

            Console.WriteLine(command);
        }
Exemplo n.º 12
0
        private void Execute(string path)
        {
            var command = new PipelineCommandBuilder("task.prependpath", path).Build();

            Console.WriteLine(command);
        }
Exemplo n.º 13
0
        private void Execute(string path)
        {
            var command = new PipelineCommandBuilder("release.updatereleasename", path).Build();

            Console.WriteLine(command);
        }
        private void Execute(string buildnumber)
        {
            var command = new PipelineCommandBuilder("build.updatebuildnumber", buildnumber).Build();

            Console.WriteLine(command);
        }