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

Java ResponsibilityEntry类代码示例

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

本文整理汇总了Java中jetbrains.buildServer.responsibility.ResponsibilityEntry的典型用法代码示例。如果您正苦于以下问题:Java ResponsibilityEntry类的具体用法?Java ResponsibilityEntry怎么用?Java ResponsibilityEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ResponsibilityEntry类属于jetbrains.buildServer.responsibility包,在下文中一共展示了ResponsibilityEntry类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
		Collection<TestName> testNames, ResponsibilityEntry entry,
		boolean isUserAction) {
	Loggers.SERVER.debug(BUILD_STATE_MESSAGE_START + project.getProjectId() + BUILD_STATE_MESSAGE_END);
	for (MsTeamsNotificationConfigWrapper whcw : getListOfEnabledMsTeamsNotifications(project.getProjectId())){
                       whcw.msteamsNotification.setPayload(myManager.responsibleChanged(project,
                               testNames,
                               entry,
                               isUserAction));
					whcw.msteamsNotification.setEnabled(whcw.msteamsNotification.getBuildStates().enabled(BuildStateEnum.RESPONSIBILITY_CHANGED));
					doPost(whcw.msteamsNotification);
					//Loggers.ACTIVITIES.debug("MsTeamsNotificationListener :: " + myManager.getFormat(whcw.whc.getPayloadFormat()).getFormatDescription());

    	}
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:17,代码来源:MsTeamsNotificationListener.java


示例2: getDescription

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
public String getDescription() {
    if (state == ResponsibilityEntry.State.NONE) {
        return "";
    }
    String description = "";
    switch (state) {
        case TAKEN:
            description += name + " is investigating";
            break;
        case FIXED:
            description += name + " fixed the build";
            break;
        case GIVEN_UP:
            description += name + " gave up fixing";
            break;
    }
    if ((comment != null) && (!comment.isEmpty())) {
        description += " - \"" + getCommentTruncated(comment, 100) + "\"";
    }

    return description;
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:23,代码来源:InvestigationViewState.java


示例3: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
		Collection<TestName> testNames, ResponsibilityEntry entry,
		boolean isUserAction) {
	Loggers.SERVER.debug(BUILD_STATE_MESSAGE_START + project.getProjectId() + BUILD_STATE_MESSAGE_END);
	for (SlackNotificationConfigWrapper whcw : getListOfEnabledSlackNotifications(project.getProjectId())){
                       whcw.slackNotification.setPayload(myManager.responsibleChanged(project,
                               testNames,
                               entry,
                               isUserAction));
					whcw.slackNotification.setEnabled(whcw.slackNotification.getBuildStates().enabled(BuildStateEnum.RESPONSIBILITY_CHANGED));
					doPost(whcw.slackNotification);
					//Loggers.ACTIVITIES.debug("SlackNotificationListener :: " + myManager.getFormat(whcw.whc.getPayloadFormat()).getFormatDescription());

    	}
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:17,代码来源:SlackNotificationListener.java


示例4: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<BuildProblemInfo> buildProblems, @Nullable ResponsibilityEntry entry) {
  super.responsibleChanged(project, buildProblems, entry);

  if (entry == null) return;
  if (notifyInvestigationTaken(entry)) return;
  if (!notifyInvestigationDelegated(entry)) return;

  User responsible = entry.getResponsibleUser();

  for (BuildProblemInfo problem: buildProblems) {
    if (problem instanceof BuildProblem) {
      BuildProblem bp = (BuildProblem) problem;
      if (BuildProblemTypes.TC_COMPILATION_ERROR_TYPE.equals(bp.getBuildProblemData().getType())) {
        registerUserEvent(responsible, AchievementEvents.compilationBroken.name());
        break;
      }
    }
  }
}
 
开发者ID:JetBrains,项目名称:teamcity-achievements,代码行数:21,代码来源:ServerEventsAdapter.java


示例5: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
/**   
 * @param bt
 * @param oldValue
 * @param newValue
 * @since 7.0
 */
@Override
public void responsibleChanged(@NotNull SBuildType bt,
           @NotNull ResponsibilityEntry oldValue,
           @NotNull ResponsibilityEntry newValue){
	logit("responsibleChanged(@NotNull SBuildType bt, @NotNull ResponsibilityEntry oldValue, @NotNull ResponsibilityEntry newValue)");
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:13,代码来源:TestListener.java


示例6: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
/** Used by versions of TeamCity 7.0 and above
 */
public MsTeamsNotificationPayloadContent responsibleChanged(SBuildType buildType,
                                 ResponsibilityEntry responsibilityEntryOld,
                                 ResponsibilityEntry responsibilityEntryNew) {

    MsTeamsNotificationPayloadContent content = new MsTeamsNotificationPayloadContent(server, buildType, BuildStateEnum.RESPONSIBILITY_CHANGED);
    String oldUser = NOBODY;
    String newUser = NOBODY;
    if (responsibilityEntryOld.getState() != ResponsibilityEntry.State.NONE) {
        oldUser = responsibilityEntryOld.getResponsibleUser().getDescriptiveName();
    }
    if (responsibilityEntryNew.getState() != ResponsibilityEntry.State.NONE) {
        newUser = responsibilityEntryNew.getResponsibleUser().getDescriptiveName();
    }


    content.setText(buildType.getFullName().trim()
                    + " changed responsibility from "
                    + oldUser
                    + " to "
                    + newUser
                    + " with comment '"
                    + responsibilityEntryNew.getComment().trim()
                    + "'"
    );

    return content;
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:30,代码来源:MsTeamsNotificationPayloadManager.java


示例7: notifyResponsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyResponsibleChanged(@NotNull Collection<TestName> testNames,
                                     @NotNull ResponsibilityEntry entry,
                                     @NotNull SProject project,
                                     @NotNull Set<SUser> users) {
  Map<String, Object> root = messageBuilder.
      getTestResponsibilityAssignedMap(testNames, entry, project, users);
  this.sendNotification(root, users, "multiple_test_responsibility_changed");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例8: notifyResponsibleAssigned

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(@NotNull Collection<TestName> testNames,
                                      @NotNull ResponsibilityEntry entry,
                                      @NotNull SProject project,
                                      @NotNull Set<SUser> users) {
  Map<String, Object> root = messageBuilder.
      getTestResponsibilityChangedMap(testNames, entry, project, users);
  this.sendNotification(root, users, "multiple_test_responsibility_assigned_to_me");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例9: notifyBuildProblemResponsibleAssigned

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyBuildProblemResponsibleAssigned(@NotNull Collection<BuildProblemInfo> buildProblems,
                                                  @NotNull ResponsibilityEntry entry,
                                                  @NotNull SProject project,
                                                  @NotNull Set<SUser> users) {
  Map<String, Object> root = messageBuilder.
      getBuildProblemsResponsibilityAssignedMap(buildProblems, entry, project, users);
  this.sendNotification(root, users, "build_problem_responsibility_assigned_to_me");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例10: notifyBuildProblemResponsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyBuildProblemResponsibleChanged(@NotNull Collection<BuildProblemInfo> buildProblems,
                                                 @NotNull ResponsibilityEntry entry,
                                                 @NotNull SProject project,
                                                 @NotNull Set<SUser> users) {
  Map<String, Object> root = messageBuilder.
      getBuildProblemsResponsibilityAssignedMap(buildProblems, entry, project, users);
  this.sendNotification(root, users, "build_problem_responsibility_changed");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例11: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
                               Collection<TestName> testNames, ResponsibilityEntry entry,
                               boolean isUserAction) {
    Loggers.SERVER.debug("About to process YammerNotifications for " + project.getProjectId() + " at buildState responsibilityChanged");

}
 
开发者ID:iguissouma,项目名称:teamcity-yammer-notifier,代码行数:8,代码来源:YammerNotificationListener.java


示例12: createInvestigationState

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
private InvestigationViewState createInvestigationState() {
    ResponsibilityEntry responsibilityInfo = this.buildType.getResponsibilityInfo();
    if (responsibilityInfo.getState() != ResponsibilityEntry.State.NONE) {
        return new InvestigationViewState(responsibilityInfo.getState(), responsibilityInfo.getResponsibleUser().getDescriptiveName(), responsibilityInfo.getComment());
    } else {
        return new InvestigationViewState();
    }
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:9,代码来源:BuildTypeMonitorViewState.java


示例13: testGetState

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Test
public void testGetState() {
    //given
    InvestigationViewState viewState = new InvestigationViewState(ResponsibilityEntry.State.TAKEN, NAME, null);
    //when
    ResponsibilityEntry.State description = viewState.getState();

    //then
    assertEquals(ResponsibilityEntry.State.TAKEN, description);
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:11,代码来源:InvestigationViewStateTest.java


示例14: testNoArgConstructor

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Test
public void testNoArgConstructor() {
    //given
    InvestigationViewState investigationViewState = new InvestigationViewState();
    //when
    String description = investigationViewState.getDescription();
    ResponsibilityEntry.State state = investigationViewState.getState();
    //then
    assertEquals("", description);
    assertEquals(ResponsibilityEntry.State.NONE, state);
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:12,代码来源:InvestigationViewStateTest.java


示例15: assertDescription

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
private void assertDescription(ResponsibilityEntry.State state, String comment, String expectedDescription) {
    //given
    InvestigationViewState viewState = new InvestigationViewState(state, NAME, comment);
    //when
    String description = viewState.getDescription();

    //then
    assertEquals(expectedDescription, description);
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:10,代码来源:InvestigationViewStateTest.java


示例16: responsibleChanged

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
/** Used by versions of TeamCity 7.0 and above
 */
public SlackNotificationPayloadContent responsibleChanged(SBuildType buildType,
                                 ResponsibilityEntry responsibilityEntryOld,
                                 ResponsibilityEntry responsibilityEntryNew) {

    SlackNotificationPayloadContent content = new SlackNotificationPayloadContent(server, buildType, BuildStateEnum.RESPONSIBILITY_CHANGED);
    String oldUser = NOBODY;
    String newUser = NOBODY;
    if (responsibilityEntryOld.getState() != ResponsibilityEntry.State.NONE) {
        oldUser = responsibilityEntryOld.getResponsibleUser().getDescriptiveName();
    }
    if (responsibilityEntryNew.getState() != ResponsibilityEntry.State.NONE) {
        newUser = responsibilityEntryNew.getResponsibleUser().getDescriptiveName();
    }


    content.setText(buildType.getFullName().trim()
                    + " changed responsibility from "
                    + oldUser
                    + " to "
                    + newUser
                    + " with comment '"
                    + responsibilityEntryNew.getComment().trim()
                    + "'"
    );

    return content;
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:30,代码来源:SlackNotificationPayloadManager.java


示例17: notifyInvestigationDelegated

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
private boolean notifyInvestigationDelegated(@NotNull ResponsibilityEntry entry) {
  User responsible = entry.getResponsibleUser();
  User reporter = entry.getReporterUser();
  if (reporter != null && reporter.getId() != responsible.getId()) {
    registerUserEvent(reporter, AchievementEvents.investigationDelegated.name());
    return true;
  }

  return false;
}
 
开发者ID:JetBrains,项目名称:teamcity-achievements,代码行数:11,代码来源:ServerEventsAdapter.java


示例18: notifyInvestigationTaken

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
private boolean notifyInvestigationTaken(@NotNull ResponsibilityEntry entry) {
  User responsible = entry.getResponsibleUser();
  User reporter = entry.getReporterUser();
  if (reporter != null && reporter.getId() == responsible.getId()) {
    registerUserEvent(reporter, AchievementEvents.investigationTaken.name());
    return true;
  }

  return false;
}
 
开发者ID:JetBrains,项目名称:teamcity-achievements,代码行数:11,代码来源:ServerEventsAdapter.java


示例19: notifyResponsibleAssigned

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(@NotNull SBuildType buildType, @NotNull Set<SUser> users) {
  final Map<String, Object> root = myMessageBuilder.getBuildTypeResponsibilityAssignedMap(buildType, users);
  final ResponsibilityEntry responsibility = (ResponsibilityEntry) root.get("responsibility");
  root.put("responsibleUser", getUserDisplayName(responsibility.getResponsibleUser()));
  root.put("reporterUser", getUserDisplayName(responsibility.getReporterUser()));
  sendNotification(users, root, BUILD_TYPE_RESPONSIBILITY_ASSIGNED);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:9,代码来源:VSONotificator.java


示例20: notifyBuildProblemResponsibleAssigned

import jetbrains.buildServer.responsibility.ResponsibilityEntry; //导入依赖的package包/类
@Override
public void notifyBuildProblemResponsibleAssigned(@NotNull Collection<BuildProblemInfo> buildProblems, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users) {
  final Map<String, Object> root = myMessageBuilder.getBuildProblemsResponsibilityAssignedMap(buildProblems, entry, project, users);
  root.put("responsibleUser", getUserDisplayName(entry.getResponsibleUser()));
  root.put("reporterUser", getUserDisplayName(entry.getReporterUser()));
  sendNotification(users, root, BUILD_PROBLEM_RESPONSIBILITY_ASSIGNED);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:8,代码来源:VSONotificator.java



注:本文中的jetbrains.buildServer.responsibility.ResponsibilityEntry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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