use of hudson.plugins.msbuild.MsBuildInstallation in project configuration-as-code-plugin by jenkinsci.
the class MSBuildTest method configure_msbuild.
@Test
@ConfiguredWithReadme("msbuild/README.md")
public void configure_msbuild() {
final DescriptorImpl msBuildDescriptor = ExtensionList.lookupSingleton(DescriptorImpl.class);
assertNotNull(msBuildDescriptor);
assertEquals(1, msBuildDescriptor.getInstallations().length);
final MsBuildInstallation msBuildInstallation = msBuildDescriptor.getInstallations()[0];
assertEquals("MSBuild Latest", msBuildInstallation.getName());
assertEquals("C:\\WINDOWS\\Microsoft.NET\\Framework\\14.0\\Bin\\MSBuild.exe", msBuildInstallation.getHome());
assertEquals("/p:Configuration=Debug", msBuildInstallation.getDefaultArgs());
}
Aggregations