[JIRA] [slack-plugin] (JENKINS-30929) UnsupportedOperationException when "Notify Build Start" notification enabled and TFS SCM is used

11 views
Skip to first unread message

wsmith@greatergiving.com (JIRA)

unread,
Oct 13, 2015, 1:10:02 PM10/13/15
to jenkinsc...@googlegroups.com
Wesley Smith created an issue
 
Jenkins / Bug JENKINS-30929
UnsupportedOperationException when "Notify Build Start" notification enabled and TFS SCM is used
Issue Type: Bug Bug
Assignee: Sam Gleske
Components: slack-plugin
Created: 13/Oct/15 5:09 PM
Environment: Operating System: Windows Server 2008 R2
Java runtime: 1.8.0_20-b26
Jenkins: 1.631
slack: 1.8
tfs: 4.0.0
Priority: Minor Minor
Reporter: Wesley Smith

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

samuca@gmail.com (JIRA)

unread,
Nov 2, 2015, 7:07:05 PM11/2/15
to jenkinsc...@googlegroups.com

konstantin.belov@gmail.com (JIRA)

unread,
Feb 29, 2016, 4:01:02 AM2/29/16
to jenkinsc...@googlegroups.com

konstantin.belov@gmail.com (JIRA)

unread,
Feb 29, 2016, 4:03:02 AM2/29/16
to jenkinsc...@googlegroups.com
Konstantin Belov edited a comment on Bug JENKINS-30929
The same issue appears with P4 SCM (Perforce).

* Jenkins: 1.642.1
* P4 Plugin: 1.3.7
* SCM API plugin: 1.0
* Slack Notification plugin: 1.8.1 

kmadel@cloudbees.com (JIRA)

unread,
Mar 15, 2016, 6:59:01 AM3/15/16
to jenkinsc...@googlegroups.com

timjacomb1@gmail.com (JIRA)

unread,
Dec 1, 2019, 2:14:09 PM12/1/19
to jenkinsc...@googlegroups.com
Change By: Tim Jacomb
Status: Open Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

timjacomb1@gmail.com (JIRA)

unread,
Dec 1, 2019, 2:14:09 PM12/1/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages