-
- Downloads
Allow runner job artifact request using token belonging to a dependent job
This opens the runner job artifact request API to requests that use either of the following tokens: 1. Job token belonging to the job that owns the artifact (existing behaviour). This token is valid regardless of the status of the job. 2. Job token belonging to the job that depends on the artifact (new behaviour). This token is valid only if the dependent job is still running.
Showing
- app/models/ci/build.rb 1 addition, 1 deletionapp/models/ci/build.rb
- config/feature_flags/development/ci_authenticate_running_job_token_for_artifacts.yml 8 additions, 0 deletions...pment/ci_authenticate_running_job_token_for_artifacts.yml
- config/feature_flags/development/ci_expose_running_job_token_for_artifacts.yml 8 additions, 0 deletions...development/ci_expose_running_job_token_for_artifacts.yml
- ee/spec/requests/api/ci/runner_spec.rb 122 additions, 6 deletionsee/spec/requests/api/ci/runner_spec.rb
- lib/api/ci/helpers/runner.rb 33 additions, 4 deletionslib/api/ci/helpers/runner.rb
- lib/api/ci/runner.rb 7 additions, 2 deletionslib/api/ci/runner.rb
- lib/api/entities/ci/job_request/dependency.rb 10 additions, 1 deletionlib/api/entities/ci/job_request/dependency.rb
- lib/api/entities/ci/job_request/response.rb 3 additions, 1 deletionlib/api/entities/ci/job_request/response.rb
- spec/lib/api/entities/ci/job_request/dependency_spec.rb 14 additions, 3 deletionsspec/lib/api/entities/ci/job_request/dependency_spec.rb
- spec/requests/api/ci/runner/jobs_artifacts_spec.rb 158 additions, 25 deletionsspec/requests/api/ci/runner/jobs_artifacts_spec.rb
- spec/requests/api/ci/runner/jobs_request_post_spec.rb 24 additions, 7 deletionsspec/requests/api/ci/runner/jobs_request_post_spec.rb
Please register or sign in to comment