mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 22:44:19 +00:00
Now scan_tests will generate 'scan_<target>.json`
also updated CI yaml and shell scripts
This commit is contained in:
@@ -124,7 +124,7 @@ class Gitlab(object):
|
||||
|
||||
return raw_data_list
|
||||
|
||||
def find_job_id(self, job_name, pipeline_id=None, job_status="success"):
|
||||
def find_job_id(self, job_name, pipeline_id=None, job_status="success", suffix=None):
|
||||
"""
|
||||
Get Job ID from job name of specific pipeline
|
||||
|
||||
@@ -132,6 +132,7 @@ class Gitlab(object):
|
||||
:param pipeline_id: If None, will get pipeline id from CI pre-defined variable.
|
||||
:param job_status: status of job. One pipeline could have multiple jobs with same name after retry.
|
||||
job_status is used to filter these jobs.
|
||||
:param suffix: suffix of the job. e.g. 'limit' for build only needed apps.
|
||||
:return: a list of job IDs (parallel job will generate multiple jobs)
|
||||
"""
|
||||
job_id_list = []
|
||||
@@ -144,6 +145,9 @@ class Gitlab(object):
|
||||
if match:
|
||||
if match.group(1) == job_name and job.status == job_status:
|
||||
job_id_list.append({"id": job.id, "parallel_num": match.group(3)})
|
||||
elif suffix:
|
||||
if match.group(1) == "{}_{}".format(job_name, suffix) and job.status == job_status:
|
||||
job_id_list.append({"id": job.id, "parallel_num": match.group(3)})
|
||||
return job_id_list
|
||||
|
||||
@retry_download
|
||||
|
Reference in New Issue
Block a user