]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add testertest
authorRobin Wittler <robin.wittler@profitbricks.com>
Tue, 2 Aug 2011 12:18:06 +0000 (14:18 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Tue, 2 Aug 2011 12:18:06 +0000 (14:18 +0200)
testertest.py [new file with mode: 0755]

diff --git a/testertest.py b/testertest.py
new file mode 100755 (executable)
index 0000000..fad6772
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import git
+
+print git
+
+import git,os
+
+print git.repo.Repo()
+print os.environ.get("GIT_OLD_ID")
+print os.environ.get("GIT_NEW_ID")
+
+
+choice = os.environ.get("GIT_TEST")
+
+if choice == "stable":
+       print ("You choose the stable environment.")
+elif choice == "testing":
+       print ("You choose the testing environment.")
+elif choice == "unstable":
+       print ("You choose the unstable environment. Good luck!")
+
+
+for name, value in os.environ.items():
+       print "%s\t= %s " % (name, value)
+