Browse Source

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
changes/46/49646/1
Clark Boylan 9 years ago
parent
commit
d7e8f3ac26
  1. 3
      tools/trigger-job.py

3
tools/trigger-job.py

@ -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('127.0.0.1', 4730)

Loading…
Cancel
Save