FileUtils.write(new File(jenkins().getRootDir(), "touch"), "here");
watchDescriptor.watchUpdate();
waitForWorkflowToComplete();
assertBuildCompletedSuccessfully();
story.j.assertLogContains("tag3=custom2 stuff=more", b);
EnvironmentAction a = b.getAction(EnvironmentAction.class);
assertNotNull(a);
assertEquals("custom2", a.getEnvironment().get("BUILD_TAG"));
assertEquals("more", a.getEnvironment().get("STUFF"));
}
});
}