本文整理汇总了Java中hudson.maven.MavenModuleSetBuild类的典型用法代码示例。如果您正苦于以下问题:Java MavenModuleSetBuild类的具体用法?Java MavenModuleSetBuild怎么用?Java MavenModuleSetBuild使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MavenModuleSetBuild类属于hudson.maven包,在下文中一共展示了MavenModuleSetBuild类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: artifactVersion
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
/** helper to get the version of the artifact from pom definition */
@SuppressWarnings("rawtypes")
private String artifactVersion( AbstractBuild build, BuildListener listener ) {
String version = "";
if ( build instanceof MavenModuleSetBuild ) {
try {
MavenModuleSetBuild mavenBuild = (MavenModuleSetBuild) build;
MavenModuleSet parent = mavenBuild.getParent();
Collection<MavenModule> modules = parent.getModules();
MavenModule module = modules.iterator().next();
version = module.getVersion();
listener.getLogger().println( "[WSO2 Deployer] "+warTargetFileName+" version: "+version );
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
listener.getLogger().println( "[WSO2 Deployer] Waning: Version is not set" );
}
} else {
listener.getLogger().println( "[WSO2 Deployer] Waning: Version is not set" );
}
return version;
}
开发者ID:ma-ha,项目名称:Jenkins-WSO2AS-Deployer,代码行数:23,代码来源:Wso2asPublisher.java
示例2: testEnvDataInMavenProject
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
@Issue("JENKINS-16028")
@Test
public void testEnvDataInMavenProject() throws Exception {
FreeStyleProject upstream = rule.createFreeStyleProject("upstream");
upstream.getBuildersList().add(new FileWriteBuilder("artifact.txt", "foobar"));
upstream.getPublishersList().add(new ArtifactArchiver("**/*", "", false, false));
FreeStyleBuild upstreamBuild = upstream.scheduleBuild2(0).get();
rule.assertBuildStatusSuccess(upstreamBuild);
MavenModuleSet downstream = setupMavenJob();
downstream.getPrebuilders().add(CopyArtifactUtil.createRunSelector(
"upstream",
"",
new BuildNumberRunSelector(Integer.toString(upstreamBuild.getNumber())),
"**/*",
"",
"",
false,
false,
false
));
CaptureEnvironmentBuilder envStep = new CaptureEnvironmentBuilder();
downstream.getPrebuilders().add(envStep);
MavenModuleSetBuild downstreamBuild = downstream.scheduleBuild2(0).get();
rule.assertBuildStatusSuccess(downstreamBuild);
assertFile(true, "artifact.txt", downstreamBuild);
assertEquals(
Integer.toString(upstreamBuild.getNumber()),
envStep.getEnvVars().get("COPYARTIFACT_BUILD_NUMBER_UPSTREAM")
);
}
开发者ID:jenkinsci,项目名称:run-selector-plugin,代码行数:33,代码来源:CopyArtifactTest.java
示例3: findMavenBuilds
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
private List<MavenBuild> findMavenBuilds() {
Run run = findRun();
List<MavenBuild> builds;
synchronized (buildCache) {
WeakReference<List<MavenBuild>> reference = buildCache.get(run);
if (reference != null) {
builds = reference.get();
if (builds != null) {
return builds;
}
}
}
if (run instanceof MavenBuild) {
builds = Arrays.asList((MavenBuild) run);
} else if (run instanceof MavenModuleSetBuild) {
builds = new ArrayList<MavenBuild>();
for (List<MavenBuild> b : ((MavenModuleSetBuild) run).getModuleBuilds().values()) {
builds.addAll(b);
}
} else {
builds = Collections.emptyList();
}
synchronized (buildCache) {
buildCache.put(run, new WeakReference<List<MavenBuild>>(builds));
}
return builds;
}
开发者ID:jenkinsci,项目名称:deployer-framework-plugin,代码行数:28,代码来源:MavenArtifactDeploySource.java
示例4: newProjectFactory
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
@Nonnull
@Override
protected BranchProjectFactory<MavenModuleSet, MavenModuleSetBuild> newProjectFactory() {
return new MavenBranchProjectFactory();
}
开发者ID:jenkinsci,项目名称:multi-branch-project-plugin,代码行数:6,代码来源:MavenMultiBranchProject.java
示例5: createAggregatedAction
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
/** {@inheritDoc} */
public MavenAggregatedReport createAggregatedAction(final MavenModuleSetBuild build, final Map<MavenModule, List<MavenBuild>> moduleBuilds) {
return new CheckStyleMavenResultAction(build, getHealthDescriptor(), getDefaultEncoding(),
new CheckStyleResult(build, getDefaultEncoding(), new ParserResult(), false));
}
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:6,代码来源:CheckStyleMavenResultAction.java
示例6: createAggregatedAction
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
/** {@inheritDoc} */
public MavenAggregatedReport createAggregatedAction(final MavenModuleSetBuild build, final Map<MavenModule, List<MavenBuild>> moduleBuilds) {
return new MavenCheckStyleResultAction(build, getHealthDescriptor(), defaultEncoding);
}
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:5,代码来源:MavenCheckStyleResultAction.java
示例7: getGoalsAndOptions
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
public String getGoalsAndOptions(MavenModuleSetBuild build) {
return goalsAndOptions;
}
开发者ID:orctom,项目名称:branch-plugin,代码行数:4,代码来源:BranchArgumentInterceptorAction.java
示例8: intercept
import hudson.maven.MavenModuleSetBuild; //导入依赖的package包/类
public ArgumentListBuilder intercept(ArgumentListBuilder mavenargs, MavenModuleSetBuild build) {
return null;
}
开发者ID:orctom,项目名称:branch-plugin,代码行数:4,代码来源:BranchArgumentInterceptorAction.java
注:本文中的hudson.maven.MavenModuleSetBuild类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论