summaryrefslogtreecommitdiff
path: root/nss/automation/taskcluster/scripts/extend_task_graph.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nss/automation/taskcluster/scripts/extend_task_graph.sh')
-rwxr-xr-xnss/automation/taskcluster/scripts/extend_task_graph.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/nss/automation/taskcluster/scripts/extend_task_graph.sh b/nss/automation/taskcluster/scripts/extend_task_graph.sh
new file mode 100755
index 0000000..5a3fb8d
--- /dev/null
+++ b/nss/automation/taskcluster/scripts/extend_task_graph.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -v -e -x
+
+if [ $(id -u) = 0 ]; then
+ # Drop privileges by re-running this script.
+ exec su worker $0
+fi
+
+mkdir -p /home/worker/artifacts
+
+# Install Node.JS dependencies.
+cd nss/automation/taskcluster/graph/ && npm install
+
+# Extend the task graph.
+node lib/index.js