also start windows build in sample buildkite
This commit is contained in:
parent
c0c87002f6
commit
11d7d0ee1f
1 changed files with 5 additions and 5 deletions
|
@ -6,20 +6,20 @@ import requests
|
||||||
# print(json.loads(re.json()))
|
# print(json.loads(re.json()))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(description='Run sample build on buildkite.')
|
parser = argparse.ArgumentParser(description='Run sample build on buildkite.')
|
||||||
parser.add_argument('--dryrun', action='store_true')
|
parser.add_argument('--dryrun', action='store_true')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
d = json.dumps({
|
d = json.dumps({
|
||||||
'branch': 'main',
|
'branch': 'main',
|
||||||
'commit': 'HEAD',
|
'commit': '20ba079dda7be1a72d64cebc9f55d909bf29f6c1',
|
||||||
'env': {
|
'env': {
|
||||||
#'ph_skip_linux': 'skip',
|
#'ph_skip_linux': 'skip',
|
||||||
'ph_skip_generated': 'skip',
|
'ph_skip_generated': 'skip',
|
||||||
'ph_log_level': 'DEBUG',
|
'ph_log_level': 'DEBUG',
|
||||||
'ph_skip_windows': 'skip',
|
# 'ph_skip_windows': 'skip',
|
||||||
'ph_linux_agents': '{"queue": "linux-test"}',
|
'ph_linux_agents': '{"queue": "linux-test"}',
|
||||||
# 'ph_windows_agents': f'{{"name": "", "queue": "{queue}"}}',
|
'ph_windows_agents': f'{{"queue": "windows-test"}}',
|
||||||
}})
|
}})
|
||||||
print(d)
|
print(d)
|
||||||
if (args.dryrun):
|
if (args.dryrun):
|
||||||
|
@ -34,4 +34,4 @@ if __name__ == '__main__':
|
||||||
data=d,
|
data=d,
|
||||||
headers={'Authorization': f'Bearer {token}'})
|
headers={'Authorization': f'Bearer {token}'})
|
||||||
print(re.status_code)
|
print(re.status_code)
|
||||||
print(re)
|
print(re)
|
||||||
|
|
Loading…
Reference in a new issue