gitlab_download_job_artifact
Retrieve metadata and download details for job artifacts from GitLab CI/CD pipelines. Use to check build outputs, access reports, or verify artifact sizes and expiration dates.
Instructions
Get information about job artifacts Returns: Artifact metadata and download information Use when: Checking build outputs, downloading test results, accessing reports Security: Returns artifact info only (no actual file download for security) Content: Lists available artifacts with sizes and expiration
Example response: { "job_id": 12345, "job_name": "build", "artifacts": [ {"filename": "dist.zip", "size": 1024000}, {"filename": "reports/junit.xml", "size": 5120} ], "artifacts_expire_at": "2023-02-01T00:00:00Z", "download_note": "Use GitLab web interface or CLI for actual downloads" }
Related tools:
- gitlab_list_pipeline_jobs: Find job IDs with artifacts
- gitlab_list_project_jobs: Browse all project jobs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
artifact_path | No | Artifact path Type: string Format: Path to specific artifact file within job artifacts Example: 'dist/bundle.js', 'reports/coverage.xml' Optional: If not specified, returns info about all artifacts | |
job_id | Yes | Job ID Type: integer Format: Numeric job identifier Example: 67890 How to find: From job URLs or gitlab_list_pipeline_jobs response | |
project_id | No | Project identifier (auto-detected if not provided) Type: integer OR string Format: numeric ID or 'namespace/project' Optional: Yes - auto-detects from current git repository Examples: - 12345 (numeric ID) - 'gitlab-org/gitlab' (namespace/project path) - 'my-group/my-subgroup/my-project' (nested groups) Note: If in a git repo with GitLab remote, this can be omitted |