Backed out changeset 2b9ebd337cf1 (bug 1385097)
authorWes Kocher <wkocher@mozilla.com>
Fri, 28 Jul 2017 11:45:03 -0700
changeset 420399 467cd830efd86eb9d9e5ee04624338b19bce9756
parent 420398 eae0a0bb18e80eddb63826634658e28bc6047a17
child 420400 36611b4b489aff826d58b654f035c89bf73ec615
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1385097
milestone56.0a1
backs out2b9ebd337cf1b214e7f3de43a2b2cb9e756c2b31
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 2b9ebd337cf1 (bug 1385097) MozReview-Commit-ID: 4l8k96uzEkQ
taskcluster/taskgraph/actions/hello-action.py
new file mode 100644
--- /dev/null
+++ b/taskcluster/taskgraph/actions/hello-action.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from __future__ import absolute_import, print_function, unicode_literals
+
+from .registry import register_callback_action
+
+
+@register_callback_action(
+    name='hello',
+    title='Say Hello',
+    symbol='hw',
+    description="""
+    Simple **proof-of-concept** action that prints a hello action.
+    """,
+    order=10000,  # Put this at the very bottom/end of any menu (default)
+    context=[{}],  # Applies to any task
+    available=lambda parameters: True,  # available regardless decision parameters (default)
+    schema={
+        'type': 'string',
+        'maxLength': 255,
+        'default': 'World',
+        'title': 'Target Name',
+        'description': """
+A name wish to say hello to...
+This should normally be **your name**.
+
+But you can also use the default value `'World'`.
+        """.strip(),
+    },
+)
+def hello_world_action(parameters, input, task_group_id, task_id, task):
+    print("This message was triggered from context-menu of taskId: {}".format(task_id))
+    print("")
+    print("Hello {}".format(input))
+    print("--- Action is now executed")