Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16364

Filter capabilities to be used in tasks based on agents capabilities

    XMLWordPrintable

Details

    • 0
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Agents have the option to have their own capabilities set up and those to be selected by a task in a later stage. However, even if the agent is not available (offline, for instance) Bamboo continues on displaying the capability to be selected in the task configuration, in which can cause the following error:

      # log extracted from "catalina.out"
      # 
      2015-09-21 11:24:16,194 ERROR [11-BAM::[AGENT-NAME]::Agent:pool-26-thread-1] [TaskExecutorImpl] Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild.
      java.lang.NullPointerException: Capability
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      	at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69)
      	at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75)
      ...
      
      # log extracted from "build log"
      # 
      simple	21-Sep-2015 11:23:14	Build [PROJECT] - [PLAN] - [JOB] #1 (PROJ-PLAN-JOB1-1) started building on agent [AGENT]
      ...
      simple	21-Sep-2015 11:24:16	Starting task 'My Microsoft build task' of type 'com.atlassian.bamboo.plugin.dotnet:msbuild'
      error	21-Sep-2015 11:24:16	Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild.
      error	21-Sep-2015 11:24:16	java.lang.NullPointerException: Capability
      error	21-Sep-2015 11:24:16		at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      error	21-Sep-2015 11:24:16		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      error	21-Sep-2015 11:24:16		at java.lang.Thread.run(Thread.java:745)
      

      It would be interesting on having:

      • Bamboo filtering capabilities that can be used at the moment plan configuration is being set up or;
      • a UI notification under the "Agents with capabilities" and/or "Job with requirements" warning that the particular JOB will not run as agents do not match requirements.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsperafico Rafael Sperafico (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: