[v8.5.x] CI: Fix windows-init (enterprise) step (#68763)

This commit is contained in:
Horst Gutmann
2023-05-22 10:50:03 +02:00
committed by GitHub
parent 8135ff40d6
commit 2d50e66b34
2 changed files with 14 additions and 4 deletions
+9 -3
View File
@@ -1182,13 +1182,19 @@ def get_windows_steps(edition, ver_mode):
'rm -r -force grafana-enterprise',
'cp grabpl.exe C:\\App\\grabpl.exe',
'rm -force grabpl.exe',
'C:\\App\\grabpl.exe init-enterprise --github-token $$env:GITHUB_TOKEN C:\\App\\grafana-enterprise',
'C:\\App\\grabpl.exe init-enterprise --github-token $$env:GITHUB_TOKEN C:\\App\\grafana-enterprise {}'.format(committish),
'cp C:\\App\\grabpl.exe grabpl.exe',
])
if 'environment' in steps[1]:
steps[1]['environment'] + {'GITHUB_TOKEN': from_secret(github_token)}
steps[1]['environment'] + {
'GITHUB_TOKEN': from_secret(github_token),
'GRAFANA_BRANCH': 'v8.5.x',
}
else:
steps[1]['environment'] = {'GITHUB_TOKEN': from_secret(github_token)}
steps[1]['environment'] = {
'GITHUB_TOKEN': from_secret(github_token),
'GRAFANA_BRANCH': 'v8.5.x',
}
return steps