Get the basic information such as the previous build number and the time 
the previous build started:

def runWrapper = selectRun job: 'pipeline-test', selector: 
permalink('lastBuild') 
echo runWrapper.getNumber().toString()
echo runWrapper.getStartTimeInMillis().toString()

The rest you have to compute with more code. You probably have to do null 
checks if runWrapper ends up being null.

Hope this helps,
Martin

-- 
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/b3bbcab3-dde5-42ba-a02f-fd4b11976f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to