java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM

Jenkins JIRA | Wesley Smith | 1 year ago
  1. 0

    If a job is configured to use Slack to send "Notify Build Start" notifications and also uses the TFS source control plugin, this exception is logged in the build output: FATAL: getAffectedFiles() is not implemented by this SCM java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242) at jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:151) at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:86) at jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:307) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:834) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:829) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:825) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Skipped archiving because build is not successful Finished: FAILURE See this link for a similar bug (and a fix) that affected the hipchat plugin: https://github.com/jlewallen/jenkins-hipchat-plugin/pull/60 The workaround is to disable the "Notify Build Start" option for the Slack plugin.

    Jenkins JIRA | 1 year ago | Wesley Smith
    java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM
  2. 0

    If a job is configured to use Slack to send "Notify Build Start" notifications and also uses the TFS source control plugin, this exception is logged in the build output: FATAL: getAffectedFiles() is not implemented by this SCM java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242) at jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:151) at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:86) at jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:307) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:834) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:829) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:825) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Skipped archiving because build is not successful Finished: FAILURE See this link for a similar bug (and a fix) that affected the hipchat plugin: https://github.com/jlewallen/jenkins-hipchat-plugin/pull/60 The workaround is to disable the "Notify Build Start" option for the Slack plugin.

    Jenkins JIRA | 1 year ago | Wesley Smith
    java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM
  3. 0

    We have one project hosted in visualstudio.com we also have a web hook to fire a build every time a code check-in happens. When this triggers a build, the build fails with the below error. When the build is triggered manually from Jenkins it succeeds. Webhook used: HTTP POST http://ec2-IP.us-west-2.compute.amazonaws.com:8080/job/ProjectDashboard_CI/build?token=XXXX C:\Program Files (x86)\Jenkins\tfs\ServiceConnector\Properties: Getting AssemblyInfo.cs [tfs] $ "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe" history $/Project/ProjectDashboard -recursive -stopafter:1 -noprompt -version:D2014-11-13T03:33:11Z -format:brief ******** -server:https://user:pass@account.visualstudio.com/DefaultCollection Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 407 Abe Diaz 11/12/2014 testing jenkins FATAL: getAffectedFiles() is not implemented by this SCM java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242) at jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:87) at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:38) at jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:203) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:795) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Abe Diaz
    java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Notify Build Start with Perforce SCM Causes Failure

    GitHub | 10 months ago | trippdaddy
    java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM
  6. 0

    We have one project hosted in visualstudio.com we also have a web hook to fire a build every time a code check-in happens. When this triggers a build, the build fails with the below error. When the build is triggered manually from Jenkins it succeeds. Webhook used: HTTP POST http://ec2-IP.us-west-2.compute.amazonaws.com:8080/job/ProjectDashboard_CI/build?token=XXXX C:\Program Files (x86)\Jenkins\tfs\ServiceConnector\Properties: Getting AssemblyInfo.cs [tfs] $ "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe" history $/Project/ProjectDashboard -recursive -stopafter:1 -noprompt -version:D2014-11-13T03:33:11Z -format:brief ******** -server:https://user:pass@account.visualstudio.com/DefaultCollection Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 407 Abe Diaz 11/12/2014 testing jenkins FATAL: getAffectedFiles() is not implemented by this SCM java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242) at jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:87) at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:38) at jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:203) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:795) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Abe Diaz
    java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      getAffectedFiles() is not implemented by this SCM

      at hudson.scm.ChangeLogSet$Entry.getAffectedFiles()
    2. Hudson
      ChangeLogSet$Entry.getAffectedFiles
      1. hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242)
      1 frame
    3. jenkins.plugins.slack
      SlackNotifier$SlackJobProperty.prebuild
      1. jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:151)
      2. jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:86)
      3. jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:307)
      3 frames
    4. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:834)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:829)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:825)
      4. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      5. hudson.model.Run.execute(Run.java:1741)
      6. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      7. hudson.model.ResourceController.execute(ResourceController.java:98)
      8. hudson.model.Executor.run(Executor.java:408)
      8 frames