User:Armenzg/TaskCluster

From MozillaWiki
Jump to navigation Jump to search

Install taskcluster cli

To install the taskcluster-cli on Linux:

# garndt recommended this - my versions were not working well
sudo apt-get remove node nodejs && sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm install -g taskcluster-cli

Run the following to verify (You should see output):

taskcluster

mach commands

 Taskcluster commands
 taskcluster-build     Create taskcluster try server build task
 taskcluster-decision  Build a decision task
 taskcluster-graph     Create taskcluster task graph

Scopes

By default, you can't trigger any b2g jobs. We will have to build a system to do it on your behalf.

Below you will see the scopes that my temporary credentials have and this is why I can trigger jobs:

{"version":1,
"scopes":
  ["queue:*",
   "index:*",
   "aws-provisioner:*",
   "assume:*",
   "scheduler:*",
   "auth:azure-table-access:taskclusterdev/*",
   "docker-worker:cache:*",
   "docker-worker:image:taskcluster/*"],
"start":1434377316973,"expiry":1437055716973,
"seed":"oALzkgeiRgW3oNUJqRSvygl-p4bq3vSvyRsflwKp65ag",
"signature":"5IUMaOg76G6sTQepUV+sZf/94zflDTUyyK8WgBv+bDk="}

I can't trigger all b2g builds since the phone ones have a tigher scope.