mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 03:13:49 +08:00
[WIP] CI: Removes enterprise specific pipelines and steps (#70815)
* Removes enterprise specific pipelines and steps (#123) * Comment out enterprise related pipelines and steps * Suppress unused variable warning * Removes all edition arguments * Remove leftover comments * Remove redundant oss on pipelines and steps names * Remove leftover unused variable * Remove leftovers * Remove pipeline dependencies * Rename pipelines * Fix starlark --------- Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com> (cherry picked from commit 642a81ba75e79138246797302aba5c35575f030d) # Conflicts: # .drone.yml # scripts/drone/steps/lib.star # Conflicts: # .drone.yml * Add editions for static assets # Conflicts: # .drone.yml # Conflicts: # .drone.yml
This commit is contained in:

committed by
GitHub

parent
6fe0963340
commit
b13939b9af
@ -10,7 +10,6 @@ load(
|
||||
"scripts/drone/steps/lib.star",
|
||||
"get_windows_steps",
|
||||
"windows_clone_step",
|
||||
"windows_init_enterprise_steps",
|
||||
"windows_test_backend_step",
|
||||
"windows_wire_install_step",
|
||||
)
|
||||
@ -34,23 +33,19 @@ def windows_test_backend(trigger, edition, ver_mode):
|
||||
windows_clone_step(),
|
||||
]
|
||||
|
||||
if edition == "enterprise":
|
||||
steps.extend(windows_init_enterprise_steps(ver_mode))
|
||||
else:
|
||||
steps.extend([{
|
||||
"name": "windows-init",
|
||||
"image": windows_images["windows_go_image"],
|
||||
"depends_on": ["clone"],
|
||||
"commands": [],
|
||||
}])
|
||||
steps.extend([{
|
||||
"name": "windows-init",
|
||||
"image": windows_images["windows_go_image"],
|
||||
"depends_on": ["clone"],
|
||||
"commands": [],
|
||||
}])
|
||||
|
||||
steps.extend([
|
||||
windows_wire_install_step(edition),
|
||||
windows_test_backend_step(),
|
||||
])
|
||||
pl = pipeline(
|
||||
name = "{}-{}-test-backend-windows".format(ver_mode, edition),
|
||||
edition = edition,
|
||||
name = "{}-test-backend-windows".format(ver_mode),
|
||||
trigger = trigger,
|
||||
steps = steps,
|
||||
depends_on = [],
|
||||
@ -62,25 +57,23 @@ def windows_test_backend(trigger, edition, ver_mode):
|
||||
}
|
||||
return pl
|
||||
|
||||
def windows(trigger, edition, ver_mode):
|
||||
def windows(trigger, ver_mode):
|
||||
"""Generates the pipeline used for building Grafana on Windows.
|
||||
|
||||
Args:
|
||||
trigger: a Drone trigger for the pipeline.
|
||||
edition: controls whether enterprise code is included in the pipeline steps.
|
||||
ver_mode: controls whether a pre-release or actual release pipeline is generated.
|
||||
Also indirectly controls which version of enterprise code is used.
|
||||
|
||||
Returns:
|
||||
Drone pipeline.
|
||||
"""
|
||||
environment = {"EDITION": edition}
|
||||
environment = {"EDITION": "oss"}
|
||||
|
||||
return pipeline(
|
||||
name = "main-windows",
|
||||
edition = edition,
|
||||
trigger = dict(trigger, repo = ["grafana/grafana"]),
|
||||
steps = get_windows_steps(edition, ver_mode),
|
||||
steps = get_windows_steps(ver_mode),
|
||||
depends_on = [
|
||||
"main-test-frontend",
|
||||
"main-test-backend",
|
||||
|
Reference in New Issue
Block a user