// If we're building Java projects, we'll want a JDK
vm.addChild(JavaVirtualMachine.buildJdk7());
{
PackageDependency jenkinsPackage = PackageDependency.build("jenkins");
jenkinsPackage.repositoryKey = new RepositoryKey();
jenkinsPackage.repositoryKey.setUrl("http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key");
jenkinsPackage.repository = new Repository();
jenkinsPackage.repository.setKey("jenkins");
jenkinsPackage.repository.getSource().add("deb http://pkg.jenkins-ci.org/debian binary/");
vm.addChild(jenkinsPackage);