Save Screenshots as Artifact
Learn how to publish screenshots as artifacts in the Docker pipeline.
We'll cover the following...
We need to add a few more tasks to the pipeline to get the screenshots from the Docker container.
Steps to get the screenshots from the container
Since the container stops after executing the Selenium tests, we need to start it again first.
After it is started, we copy the screenshots from the target/screenshots
folder of the container in a sub-folder of the default working folder of the pipeline. ...