summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-07-20 08:35:28 +0100
committerKatolaZ <katolaz@freaknet.org>2017-07-20 08:35:28 +0100
commit001bcbdbfff95a3edcdae21b687f58c2628116f9 (patch)
treee2ee1ad85a9b626f7696b7786c8ed6cb9673d3f3 /examples
parent7a4cdc99d9242303c84be398f8b9c296b62c0a27 (diff)
Environment variables exported. added examples/scorsh_script.sh
Diffstat (limited to 'examples')
-rw-r--r--examples/scorsh_script.sh10
-rw-r--r--examples/worker1/worker1.cfg2
2 files changed, 11 insertions, 1 deletions
diff --git a/examples/scorsh_script.sh b/examples/scorsh_script.sh
new file mode 100644
index 0000000..9a563d8
--- /dev/null
+++ b/examples/scorsh_script.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+echo "SCORSH_REPO:" ${SCORSH_REPO}
+echo "SCORSH_BRANCH:" ${SCORSH_BRANCH}
+echo "SCORSH_OLDREV:" ${SCORSH_OLDREV}
+echo "SCORSH_NEWREV:" ${SCORSH_NEWREV}
+echo "SCORSH_ID:" ${SCORSH_ID}
+
+
+echo "I am running!!!!" >> log.txt
diff --git a/examples/worker1/worker1.cfg b/examples/worker1/worker1.cfg
index 0eabdf7..178723c 100644
--- a/examples/worker1/worker1.cfg
+++ b/examples/worker1/worker1.cfg
@@ -25,7 +25,7 @@ w_tags:
t_keyrings: ["allowed_users.asc"],
t_commands: [
{
- c_url: "file:///home/katolaz/bin/scorsh_build.sh"
+ c_url: "file:///home/katolaz/bin/scorsh_script.sh"
}
]
}