diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 12:48:15 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 12:48:15 +0100 |
commit | ceb8f28593246e0019372e63f1a8381612ba24b3 (patch) | |
tree | d2f3316d794bb8fdb69f5fe8338291ecdde913fa /builder_logic.py | |
parent | 66eb7801b6c10d23f38dc4d8c487370f4081ac68 (diff) | |
download | buildslave-scripts-ceb8f28593246e0019372e63f1a8381612ba24b3.tar.gz |
Get buildslave-scripts sha from remote
Diffstat (limited to 'builder_logic.py')
-rw-r--r-- | builder_logic.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/builder_logic.py b/builder_logic.py index 72e6a16..1c39f3c 100644 --- a/builder_logic.py +++ b/builder_logic.py @@ -7,6 +7,7 @@ DEPLOY_SCRIPT = 'deploy_a_system.sh' DEFINITIONS_DIR='definitions' REF = "cu010-trove/br6/firehose-test-1" TESTING_REPO = 'ssh://git@cu010-trove.codethink.com/cu010-trove/br6/ciat-tester' +BUILDSLAVE_SCRIPTS_REPO = 'ssh://git@cu010-trove.codethink.com/cu010-trove/br6/buildslave-scripts' whitelist = [ SYSTEM, @@ -86,10 +87,7 @@ def do_build_deploy(system): return trigger_deploy(system) def get_buildslave_scripts_sha(): - _cmd = ['git', 'log', REF, '--format=format:%H', '-1'] - _proc = subprocess.Popen(['ls'], stdout=subprocess.PIPE) - _out, _err = _proc.communicate() - log(_out) + _cmd = ['git','ls-remote',BUILDSLAVE_SCRIPTS_REPO] _proc = subprocess.Popen(_cmd, stdout=subprocess.PIPE) _out, _err = _proc.communicate() return _out.split()[0] |