Change By: Khai Do (15/Oct/14 6:33 PM)
Description: The jenkins ItemListener does not fire events when user updates project configurations using the REST API.  Events do get fired when user makes changes from the UI though.

Steps to repro:
I am using the python-jenkins library (https://pypi.python.org/pypi/python-jenkins) to update my jobs which does all operations using the jenkins rest API. 

1. Create a project
2. Update the project configuration using the REST api.  I tried changing the 'concurrentBuild' and 'assignNode' configurations. 
3. check the job configuration in the UI to make sure it has been updated.

Note -  No  The job configuration does get updated with the change but no  events  fired  called  from ItemListener.  I would expect the ItemListener.onUpdated() event to fire.

This is the XML that was used for updating the job:

<?xml version="1.0" encoding="utf-8"?>
<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <concurrentBuild>false</concurrentBuild>
  <assignedNode>centos</assignedNode>
  <canRoam>false</canRoam>
  <properties/>
  <scm class="hudson.scm.NullSCM"/>
  <builders>
    <hudson.tasks.Shell>
      <command>echo my test</command>
    </hudson.tasks.Shell>
  </builders>
  <publishers/>
  <buildWrappers/>
</project>

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to