bit
bit copied to clipboard
Component Pipeline: Explore Tasks and Artifacts
Proposed Changes
- GQL API : Query all available build artifacts across all extensions configured on a given component
type TaskReport {
id: String!
name: String!
description: String
startTime: String
endTime: String
errors: [String!]
warnings: [String!]
artifact(path: String): Artifact
}
type ArtifactFile {
# for GQL caching - same as the path
id: String!
name: String
path: String!
# artifact file content (only for text files). Use /api/<component-id>/~aspect/builder/<extension-id>/~<path> to fetch binary file data
content: String
downloadUrl: String
}
type Artifact {
# artifact name
name: String
description: String
files: [ArtifactFile!]!
}
extend type Component {
pipelineReport(taskId: String): [TaskReport!]!
}
- Express API - Download all available build artifacts across all extensions configured on a given component
/api/${componentId}/~aspect/builder/${taskId}/~${path}
/api/${componentId}/~aspect/builder/${taskId}/
- Component Pipeline UI - View and Explore all tasks configured and download artifacts produced by a given task
https://user-images.githubusercontent.com/8999604/182903607-28d90cd5-ad8d-486d-a266-7352bd57d03f.mov
- Chore: Deprecate usage of
ArtifactObjectin harmony. Port toArtifactList<T>