def search_artifact_by_regexp( jenkinsurl, jobid, artifactRegExp ):
    """
    Search the entire history of a hudson job for a build which has an artifact whose
    name matches a supplied regular expression. Return only that artifact.
    """
    J = Jenkins( jenkinsurl )
    j = J[ jobid ] 
    
    build_ids = j.getBuildIds()
    
    for build_id in build_ids:
        build = j.getBuild( build_id )
        
        artifacts = build.getArtifactDict()
        
        for name, art in artifacts.iteritems():
            md_match = artifactRegExp.search( name )
            
            if md_match:
                return art
        
    raise ArtifactsMissing( )
Establish the websocket connection to the data engine. When job_id is
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/api.py/search_artifact_by_regexp--crossover with--dataset/ETHPy150Open jut-io/jut-python-tools/jut/api/data_engine.py/__wss_connect