Let's start by seeing Taskcluster in action.
It's very easy to get started with Taskcluster, but we will need to know a little bit about you. We support sign-in by Mozillians, as well as by developers and employees with LDAP credentials. If that doesn't sound familiar to you, head over to Mozillians and set up a new account for yourself. Now you're a Mozillian -- thanks for rocking the free web with us!
Visit the Task Creator and click the "Sign In" link in the upper right corner. Sign in using whatever method best suits you. If you just set up a Mozillians account, use that. Click the "Grant Permission" button, which will return you to the task creator.
What you see in the text box is a bare-bones task description, looking something like this (the details may evolve as features are added):
provisionerId: aws-provisioner-v1 workerType: tutorial created: '2017-09-27T15:24:45.442Z' deadline: '2017-09-27T18:24:45.443Z' payload: image: 'ubuntu:13.10' command: - /bin/bash - '-c' - for ((i=1;i<=600;i++)); do echo $i; sleep 1; done maxRunTime: 600 metadata: name: Example Task description: Markdown description of **what** this task does owner: email@example.com source: 'https://tools.taskcluster.net/task-creator/'
Happily, this is already set up to print "hello world"! Submit the task, and click the resulting task ID to load the task inspector while the task is scheduled and run.
The fields in the task description are explained in greater detail throughout the rest of this documentation, but briefly:
provisionerIdidentifies the Taskcluster provisioner responsible for the compute resources that will execute the task. In this case, it is the AWS Provisioner, which runs its tasks on Amazon EC2 instances using Docker.
workerTypeis a parameter specific to the AWS provisioner which identifies the pool of EC2 resources within which the task should be executed. Pools may use different EC2 instance types, AMIs, etc. In this case, we are using a worker type dedicated to running tasks in this tutorial.
deadlinegive a time boundary for the task. If the task is not completed by its deadline, it will be resolved as
payloadis interpreted by the Docker worker. The
imagekey specifies the docker image to pull, and the
commandgives the command to run within that image.
In the task inspector, you will see your task description as executed, and indications of the task's status: pending, executing, and then finished.
The log view shows the output of the task, including that from downloading the docker image.
Scrolling all the way to the bottom, you should see the greeting output by the
You've run your first task!