[BASOP-CI]use scope to only get success or failed jobs
In get_id_of_last_job_occurence.py
, use the scope
attribute in the gitlab API request to only get successful jobs and (if --success_only
is not given) failed jobs in the response. This should also ensure that the currently running job's id is not returned.