Okay, I think I've figured out the big questions.

First, I need to create a build step using "Execute system Groovy script" 
as the type. This will execute within the JVM running Jenkins and will have 
access to the Jenkins build information.

Next, I can gain access to the current build using the following:
build =Thread.currentThread().executable

Now, I can walk through the builds and access the change sets for each, as 
in the following:
def changes = "Changes:\n"
while ( build != null && build.result != 'SUCCESS' ) {
    changes += "In ${build.id}:\n"
    for ( changeLog in build.changeSets) {
        for ( entry in changeLog.items ) {
            change += "${entry.msg}\n"
        }
    }
}

I then found the Javadoc for the Jenkins API here: 
http://javadoc.jenkins-ci.org/index.html?hudson and from there I was able 
to determine the members of each class, etc.

Thanks for your considerations.




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b63ea63e-7f9a-47c6-8e23-7fc4267b2f93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to