diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-08 13:33:24 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-08 13:33:24 +0300 |
commit | 2ad098694868290c05313ed4b138fcd5064c65b8 (patch) | |
tree | 409c322fe1d98f895f16f9239ecf74b5304649e0 /run-jjb.py | |
parent | 7a0135d4d285b4f2fe50f1937080d835d6d7c941 (diff) |
run-jjb.py: fix updated jobs between 2 commits
jenkins git plugin provides GIT_PREVIOUS_COMMIT. Use it to list
the modified files between the previous built commit and current
commit.
Change-Id: I3356f9d3e74fed7db2c6574a401163f5c0e40dd1
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'run-jjb.py')
-rwxr-xr-x | run-jjb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/run-jjb.py b/run-jjb.py index 957ed51e54..741119bb86 100755 --- a/run-jjb.py +++ b/run-jjb.py @@ -11,8 +11,9 @@ from distutils.spawn import find_executable jjb_cmd = find_executable('jenkins-jobs') or sys.exit('jenkins-jobs is not found.') try: - arguments = ['git', 'diff-tree', '--no-commit-id', '--name-only', - '--diff-filter=AM', '-r', os.environ.get('GIT_COMMIT')] + arguments = ['git', 'diff', '--name-only', + os.environ.get('GIT_PREVIOUS_COMMIT'), + os.environ.get('GIT_COMMIT')] proc = subprocess.Popen(arguments, stdin=subprocess.PIPE, stdout=subprocess.PIPE, |