loading...

Sparrow6 plugin to run/wait azure devops builds programmatically

melezhik profile image Alexey Melezhik ・1 min read

Ado-pipeline-build is a handy Sparrow6 plugin to manage Azure devops builds programmatically.

Install

s6 --install ado-pipeline-build

API


# queue new build
my %state = task_run "run my build", "ado-pipeline-build", %(
  name => "WebApp",
  variables => "foo=1 bar=2"
);

# wait till the my  build finishes
task_run "wait my build", "ado-pipeline-build", %(
  action => "wait",
  build_id => %state<build_id>
);

# list all builds for given build definition and current branch
task_run "last builds", "ado-pipeline-build", %(
  name => "WebApp",
  action => "list"
);

Documentation

ado-pipeline-build

Discussion

pic
Editor guide