Update trigger-job.py to pass LOG_PATH

* tools/trigger-job.py: Add a logpath arg and make it required. This
allows us to upload logs to appropriate dirs even when manually
triggering jobs.

Change-Id: I59144a2d5443fb6396af45f302f67bc8eec70780
This commit is contained in:
Clark Boylan 2013-10-03 15:31:04 -07:00
parent 3042569ae5
commit d7e8f3ac26
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,8 @@ def main():
help='Old revision (SHA)')
parser.add_argument('--newrev', dest='newrev',
help='New revision (SHA)')
parser.add_argument('--logpath', dest='logpath', required=True,
help='Path for log files.')
args = parser.parse_args()
data = {'ZUUL_PIPELINE': args.pipeline,
@ -54,6 +56,7 @@ def main():
'ZUUL_SHORT_OLDREV': args.oldrev[:7],
'ZUUL_SHORT_NEWREV': args.newrev[:7],
'ZUUL_COMMIT': args.newrev,
'LOG_PATH': args.logpath,
c.addServer('', 4730)