Hi,

just to let you know I extracted some code from the Launcher to query
Jenkins servers from Pharo.

With this project, you can write code like:

    | pillar zipArtifact | 
    
    pillar := JenkinsServer pharoContributions jobs detect: [ :job | job name = 
'Pillar' ].
    
    zipArtifact := pillar lastSuccessfulBuild runs anyOne artifacts detect: [ 
:artifact | artifact name = 'Pillar.zip' ]
    
    ZnClient new url: zipArtifact url; downloadTo: 'Pillar.zip'

The (very simple) code is on github:

    https://github.com/DamienCassou/pharo-jenkins

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Reply via email to