59219

Jenkins getting test results from docker slave

Question:

We have a jenkins setup with docker slaves, but somehow not all artifacts are available from within jenkins.

Our setup:

  • Jenkins Master running on a single VM
  • multiple Docker hosts setup on different VM's
  • We are using php-template
  • Docker containers are configured to run all tests required for our projects.
  • When a project is being build a docker container is spun up on one of the Docker hosts, tests are run, phing results are copied back to the host, the docker container is committed to an image and the running container is destroyed.
  • We are using the "copy to slave plugin" to copy our build directory from the slave to the master so all required artifacts are on the Jenkins master.

The problem is that when the build is completed that we are not able to view the workspace files (which we copied with the copy to slave plugin) We are also unable to link to the graphics files which have been copied to the master.

<img type="image/svg+xml" height="300" src="ws/build/pdepend/overview-pyramid.svg" width="500"></img> <img type="image/svg+xml" height="300" src="ws/build/pdepend/dependencies.svg" width="500"></img>

We can however see these images during build when the docker container is still running.

What are we missing?

Answer1:

To update and close this question. I have solved this by adding the required files to the jenkins master as an reporting resource "Publish HTML reports" This way we can link to the missing files.

<img type="image/svg+xml" height="300" src="Pdepend_files/overview-pyramid.svg" width="500"></img> <img type="image/svg+xml" height="300" src="Pdepend_files/dependencies.svg" width="500"></img>

Recommend

  • Jenkins getting test results from docker slave
  • What is the production-readiness of sails.js and meteor.js, and how to they compare to Django? [clos
  • How do I tell Phing where PHPUnit is installed?
  • Is a .txt file created in VB different than one I'd randomly create?
  • richtextbox to string
  • Is it possible to send skype chat messages from a linux server without X?
  • NSMutableArray Access Issue
  • Ruby: FileUtils.cp truncates file; FileUtils.mv it does not?
  • Boost binary serialization doesn't work occasionally. The parsed data is corrupted sometimes
  • add a publickey to server for SCP [closed]
  • Simplify where clause with repeated associated type restrictions
  • Guava how to copy all files from one directory to another
  • Add reference to ASP.NET 5 Class Library from Framework 4.5 Class Library Project
  • Most efficient way to move table rows from one table to another
  • C#: Import/Export Settings into/from a File
  • Syntax error on tokens, AnnotationName expected instead - error on query
  • JSR-330 support in Picocontainer : @Inject … @Named(\"xxx)
  • How can I display the parent menu item's description using Wordpress walkers?
  • std::remove_copy_if_ valgrind bytes in block are possibly lost in loss record
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Do I need to reset a Perl hash index?
  • Functions in global context
  • Switching to Release Build causes runtime error in Web Reference
  • Asynchronous UI Testing in Xcode With Swift
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • VS2008 Enable C++ Exception with SEH
  • angularjs unit test when to use $rootScope.$new()
  • Convert array of 8 bytes to signed long in C++
  • Why winpcap requires both .lib and .dll to run?
  • QuartzCore.framework for Mono Develop
  • XCode can't find symbols for a specific iOS library/framework project
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • -fvisibility=hidden not passed by compiler for Debug builds
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Does armcc optimizes non-volatile variables with -O0?
  • Net Present Value in Excel for Grouped Recurring CF