Function
upload_artifact
(path: Path | str, cwd: Path | None = None, quiet: bool = False)
Source from the content-addressed store, hash-verified
| 158 | |
| 159 | |
| 160 | def upload_artifact(path: Path | str, cwd: Path | None = None, quiet: bool = False): |
| 161 | spawn.run_with_retries( |
| 162 | lambda: spawn.runv( |
| 163 | [ |
| 164 | "buildkite-agent", |
| 165 | "artifact", |
| 166 | "upload", |
| 167 | "--log-level", |
| 168 | "fatal" if quiet else "notice", |
| 169 | path, |
| 170 | ], |
| 171 | cwd=cwd, |
| 172 | ) |
| 173 | ) |
| 174 | |
| 175 | |
| 176 | def get_parallelism_index() -> int: |
Tested by
no test coverage detected