canmove, Confirmed users
112
edits
m (minor update) |
m (minor formatting change) |
||
Line 1: | Line 1: | ||
===== Preparation ===== | |||
# Create an empty python file. | # Create an empty python file. | ||
Line 6: | Line 6: | ||
# Copy it to ~/bin so you can access it anytime, from any directory in the terminal. | # Copy it to ~/bin so you can access it anytime, from any directory in the terminal. | ||
===== Setting up taskcluster ===== | |||
In order to run the previous python file we will need the help from taskcluster cli. The installation of the app can be done in two methods. Choose one. Both are correct. | In order to run the previous python file we will need the help from taskcluster cli. The installation of the app can be done in two methods. Choose one. Both are correct. | ||
* Download taskcluster needed file and make it executable | * Download taskcluster needed file and make it executable | ||
Line 15: | Line 14: | ||
# The second way is by installing it : pip install taskcluster==3.0.2 | # The second way is by installing it : pip install taskcluster==3.0.2 | ||
===== Authentication ===== | |||
# Before running the command, check that you are logged on with your ldap on [https://tools.taskcluster.net/ taskcluster] | # Before running the command, check that you are logged on with your ldap on [https://tools.taskcluster.net/ taskcluster] | ||
# Next we need to sign in, running the following command : <br />./taskcluster signin | # Next we need to sign in, running the following command : <br />./taskcluster signin | ||
Line 21: | Line 20: | ||
In the browser a new page should have opened with all your taskcluster secrets and access groups. Scroll down until the bottom of the screen and check for a button called '''Create client''', ''press it''. Now you are ready to run the script. | In the browser a new page should have opened with all your taskcluster secrets and access groups. Scroll down until the bottom of the screen and check for a button called '''Create client''', ''press it''. Now you are ready to run the script. | ||
===== Running the script ===== | |||
Next we will execute the python file we saved locally with the code from git in it. Make sure it is properly indented after the copy & paste. Below is a table with all the possible arguments: | Next we will execute the python file we saved locally with the code from git in it. Make sure it is properly indented after the copy & paste. Below is a table with all the possible arguments: | ||
[[File:Cli.png]] | [[File:Cli.png]] | ||
===== Example ===== | |||
In our case we needed to un-quarantine t-yosemite-r7-070 so the command looked like this : | In our case we needed to un-quarantine t-yosemite-r7-070 so the command looked like this : | ||
* python quarantine_machines.py --enable --provisioner releng-hardware --worker-type gecko-t-osx-1010 --worker-group mdc1 t-yosemite-r7-070 | * python quarantine_machines.py --enable --provisioner releng-hardware --worker-type gecko-t-osx-1010 --worker-group mdc1 t-yosemite-r7-070 |