Save Logs As Artifact

Learn how to publish the logs as artifacts using the Docker pipeline.

We'll cover the following

Saving the logs as artifacts is very similar to saving screenshots as artifacts.

We just need to copy the logs from the container to the default working directory of the pipeline first. Then, the logs from the default working directory are saved as artifacts.

The final pipeline

The final pipeline code is below:

Get hands-on with 1400+ tech skills courses.