From fd015b401dcc977b51396f80fab5acdd792ba694 Mon Sep 17 00:00:00 2001 From: Max Zheng Date: Fri, 9 Mar 2018 14:54:43 -0800 Subject: [PATCH] MINOR: Tag AWS instances with Jenkins build url (#4657) This will allow us to trace leaked instances back to the job, so that we can figure out what happened and fix the leak. Reviewers: Ismael Juma --- Vagrantfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 2179a3c37ec..069bc5be886 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -141,7 +141,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| def name_node(node, name, ec2_instance_name_prefix) node.vm.hostname = name node.vm.provider :aws do |aws| - aws.tags = { 'Name' => ec2_instance_name_prefix + "-" + Socket.gethostname + "-" + name } + aws.tags = { + 'Name' => ec2_instance_name_prefix + "-" + Socket.gethostname + "-" + name, + 'JenkinsBuildUrl' => ENV['BUILD_URL'] + } end end