From: Robin Wittler Date: Tue, 2 Aug 2011 12:18:06 +0000 (+0200) Subject: add testertest X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=25e228d1140327293e9123c3702b995cd4a68549;p=profitbricks%2Fjenkins-build-scripts.git add testertest --- diff --git a/testertest.py b/testertest.py new file mode 100755 index 0000000..fad6772 --- /dev/null +++ b/testertest.py @@ -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) +