diff --git a/tasks/agent.py b/tasks/agent.py index bed736cd38279..7860fa5238378 100644 --- a/tasks/agent.py +++ b/tasks/agent.py @@ -649,6 +649,18 @@ def bundle_install_omnibus(ctx, gem_path=None, env=None): ctx.run(cmd, env=env) +def _get_build_images(ctx): + tags = ctx.run("grep -E 'DATADOG_AGENT_.*BUILDIMAGES:' .gitlab-ci.yml | cut -d ':' -f 2").stdout + return map(lambda t: t.strip(), tags.splitlines()) + + +def _omnibus_compute_cache_key(ctx): + omnibus_last_commit = ctx.run('git log -n 1 --pretty=format:%H omnibus/').stdout + buildimages_hash = _get_build_images(ctx) + + pass + + # hardened-runtime needs to be set to False to build on MacOS < 10.13.6, as the -o runtime option is not supported. @task( help={