Browse Source

Update trigger script for new zuul url parameter

* tools/trigger-job.py: Add a --url option which passes the required
ZUUL_URL parameter with a sane default for OpenStack Infra's
environment.

Change-Id: I2d8aa73b11b0069e31ffa599c1c9d9059919fb7a
changes/92/73392/1
Jeremy Stanley 8 years ago
parent
commit
8928ad4f26
  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('--url', dest='url',
default='http://zuul.openstack.org/p', help='Zuul URL')
parser.add_argument('--logpath', dest='logpath', required=True,
help='Path for log files.')
args = parser.parse_args()
@ -56,6 +58,7 @@ def main():
'ZUUL_SHORT_OLDREV': args.oldrev[:7],
'ZUUL_SHORT_NEWREV': args.newrev[:7],
'ZUUL_COMMIT': args.newrev,
'ZUUL_URL': args.url,
'LOG_PATH': args.logpath,
}

Loading…
Cancel
Save