File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ if !Pkg.Artifacts.artifact_exists(rootfs_treehash)
2626 Pkg. Artifacts. download_artifact (rootfs_treehash, rootfs_url, nothing ; verbose);
2727end
2828
29+ # Create an Artifacts.toml file pointing to this rootfs treehash.
30+ # The file itself will be deleted after this pipeline finishes, but
31+ # depending on the `collect_delay` set in the pipeline, it may stay
32+ # around for a while. This works because `bind_artifact!()` internally
33+ # writes into `artifact_usage.toml` in our depot, which informs `gc()`.
34+ temp_artifact_toml = joinpath (mktempdir (prefix= " sandbox-buildkite-plugin" , cleanup= false ), " Artifacts.toml" )
35+ Pkg. Artifacts. bind_artifact! (temp_artifact_toml, " rootfs" , rootfs_treehash)
36+
2937# Helper to map in a directory that is defined within an environment variable
3038# if that variable is set, and it's pointing to a real directory.
3139function add_env_dir! (dict, env_var; default= nothing )
You can’t perform that action at this time.
0 commit comments