• Tomasz Maczukin's avatar
    Send only defined dependencies · c191c110
    Tomasz Maczukin authored
    In APIv1 we've been sending all jobs from previous stages and
    a `dependencies` list with names of jobs that user want to download
    artifacts from. This was selected on Runners side.
    
    In APIv1 we've planned to send only jobs that were defined (if any; and
    all previous jobs by default). However I've missed the fact that
    it was Runner who selected jobs, not GitLab. And now current version
    of APIV4 sends all jobs everytime.
    
    This commit fixes this. If user will define `dependencies` in his job,
    then GitLab will send only selected jobs.
    c191c110
build.rb 17.2 KB