• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java MavenModuleSetBuild类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ObjectLinkedOpenHashSet类代码示例发布时间:2022-05-23
下一篇:
Java Configuration类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap