Hi, 

I am trying to catch download event through a user plugin. I have the below 
script under the /plugins directory and restart the artifactory.  Artifactory 
log indicate that the script loaded. 

But when I try to download an artifact, I check the artifactory log but I 
didn't see the log print statements. 
I am using artifactory version 2.6.5 

What am I doing wrong here?  Please advise. 

myDownloadTest.groovy 
-------------- 

import org.artifactory.repo.RepoPath 
import org.artifactory.request.Request 

download { 
   altResponse { request, responseRepoPath -> 
            log.info "I am in download" 
            log.info "My responsePath -> ${responseRepoPath.name}" 
        
    } 
}
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to