def grab_artifact(jenkinsurl, jobid, artifactid, targetdir):
    artifacts = get_artifacts( jenkinsurl, jobid )
    artifact = artifacts[ artifactid ]
    if not os.path.exists( targetdir ):
        os.makedirs( targetdir )
    artifact.savetodir( targetdir)
Convenience method to find the latest good version of an artifact and save it
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/api.py/grab_artifact