Ok thanks! I will have a look at it.

On Thursday, October 15, 2015 at 11:05:39 PM UTC+2, Victor Martinez wrote:
>
> Hi,
>
>   jobConfigHistory plugin uses that functionality, have you seen how it is 
> used in that plugin?
>
> Cheers
>
> On Thursday, 15 October 2015 11:45:38 UTC+2, Jim SERRA wrote:
>>
>> Hi,
>> I'm trying to use ItemListener.java to do actions after a job is deleted. 
>> I'm testing it by creating a random new file but it's not working:  
>>
>>
>> @Extension
>> public class UpdateTable extends ItemListener{
>>     @Override
>>     public void onDeleted(Item deletedItem) {
>>          File file2 = new File("/var/lib/jenkins/the_test.txt");
>>         try {
>>             file2.createNewFile();
>>         } catch (IOException ex) {
>>             Logger.getLogger(UpdateTable.class.getName()).log(Level.
>> SEVERE, null, ex);
>>         }
>>     }
>> }
>>
>> Regards,
>>
>> Jim.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/4eee9aab-9bf3-40fb-aec4-2c7cb6b1467e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to