def get_artifacts( jenkinsurl, jobid=None, build_no=None, proxyhost=None, proxyport=None, proxyuser=None, proxypass=None ):
    jenkinsci = Jenkins(jenkinsurl, proxyhost, proxyport, proxyuser, proxypass)
    job = jenkinsci[jobid]
    if build_no:
        build = job.get_build( build_no )
    else:
        build = job.get_last_good_build()
    artifacts = dict((artifact.filename, artifact) for artifact in build.get_artifacts())
    log.info("Found %i artifacts in '%s'" % ( len(artifacts.keys() ), build_no ))
    return artifacts
Compute the model similarity (beta) between each model slice and each target image slice
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/api.py/get_artifacts--crossover with--dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/sct_segment_gray_matter_asman/2015-08-17-full_scripts_before_cleaning/sct_asman.py/Model.compute_beta