Skip to content

Commit 83392b1

Browse files
committed
removing space from Pull Request option for build type
1 parent 43fd383 commit 83392b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workspace_tools/upload_results.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def create_build(args):
3636
build['source'] = args.build_source
3737
build['status'] = 'running'
3838

39+
if build['buildType'] == 'Pull_Request':
40+
build['buildType'] = 'Pull Request'
41+
3942
r = requests.post(urlparse.urljoin(args.url, "api/builds"), headers=create_headers(args), json=build)
4043

4144
if r.status_code < 400:
@@ -142,7 +145,7 @@ def main(arguments):
142145

143146
create_build_parser = subparsers.add_parser('create-build', help='create a new build')
144147
create_build_parser.add_argument('-b', '--build-number', required=True, help='build number')
145-
create_build_parser.add_argument('-T', '--build-type', choices=['Nightly', 'Limited', 'Pull Request'], required=True, help='type of build')
148+
create_build_parser.add_argument('-T', '--build-type', choices=['Nightly', 'Limited', 'Pull_Request'], required=True, help='type of build')
146149
create_build_parser.add_argument('-s', '--build-source', required=True, help='url to source of build')
147150
create_build_parser.add_argument('-p', '--property-file-format', action='store_true', help='print result in the property file format')
148151
create_build_parser.set_defaults(func=create_build)

0 commit comments

Comments
 (0)