In this video:
- Learn how to split your pipeline into stages
- Configure Go's Failed Test History report to work with your unit tests
Materials:
- my-java-project.zip contains a sample Java project with unit tests
- The code sample contains the Go Server configuration settings used in this video
Video:
Code Sample:
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="18">
<server artifactsdir="artifacts">
</server>
<pipelines group="myGroup">
<pipeline name="myProject">
<materials>
<hg url="http://localhost:8000" />
</materials>
<stage name="build">
<jobs>
<job name="compile-prod">
<tasks>
<ant buildfile="build-no-dependencies.xml" target="compile-prod" />
</tasks>
<artifacts>
<artifact src="target" dest="prod-classes" />
</artifacts>
</job>
</jobs>
</stage>
<stage name="unit-test">
<jobs>
<job name="junit">
<tasks>
<fetchartifact pipeline="myProject" stage="build" job="compile-prod" srcdir="prod-classes" />
<ant buildfile="build-no-dependencies.xml" target="test" />
</tasks>
<artifacts>
<test src="target/reports" dest="junit" />
</artifacts>
</job>
</jobs>
</stage>
</pipeline>
</pipelines>
</cruise>
Comments
1 comment
Video is missing. Please fix.
Article is closed for comments.