worker: Expose the ArtifactsDir path
This will help make it easier to write the original compose request json to the same directory tree. Related: RHEL-60120
This commit is contained in:
parent
a394d1a498
commit
199a3d31f8
1 changed files with 5 additions and 0 deletions
|
|
@ -605,6 +605,11 @@ func (s *Server) SetFailed(id uuid.UUID, error *clienterrors.Error) error {
|
|||
return s.jobs.FailJob(id, res)
|
||||
}
|
||||
|
||||
// Return the ArtifactsDir path
|
||||
func (s *Server) ArtifactsDir() string {
|
||||
return s.config.ArtifactsDir
|
||||
}
|
||||
|
||||
// Provides access to artifacts of a job. Returns an io.Reader for the artifact
|
||||
// and the artifact's size.
|
||||
func (s *Server) JobArtifact(id uuid.UUID, name string) (io.Reader, int64, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue