

def upload_artifacts_to_staging(self, local_artifacts, repo_id, print_created_artifacts=True, upload_filelist=False):
    '\n        :param local_artifacts: list[LocalArtifact]\n        :param repo_id: name of staging repository\n        :param print_created_artifacts: if True prints to stdout what was uploaded and where\n        :param staging: bool\n        :param upload_filelist: if True, creates and uploads a list of uploaded files\n\n        :return: list[RemoteArtifact]\n        '
    hostname_for_download = self._staging_repository_url
    path_prefix = 'service/local/staging/deployByRepositoryId'
    remote_artifacts = self.upload_artifacts(local_artifacts, repo_id, print_created_artifacts, hostname_for_download, path_prefix)
    if upload_filelist:
        coord_list = [a.get_coordinates_string() for a in remote_artifacts]
        data = '\n'.join(coord_list)
        remote_path = '{path_prefix}/{repo_id}/{filelist_path}'.format(path_prefix=path_prefix, repo_id=repo_id, filelist_path=self._get_filelist_path(repo_id))
        self._send(remote_path, method='POST', data=data, headers={
            'Content-Type': 'text/csv',
        })
    return remote_artifacts

dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py NexusProRepositoryClient.upload_artifacts_to_staging/original