Add 'last-completed' to copyartifact 'which-build' values

Change-Id: I4ae84f7ca2d8d28195d6590c7a25d6c8886cde77
This commit is contained in:
Igor Belikov
2015-02-10 13:48:51 +03:00
parent 74c8ac4561
commit 51a18754c6
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<hudson.plugins.copyartifact.CopyArtifact>
<project>foo</project>
<filter>*.txt</filter>
<target>/home/foo</target>
<flatten>true</flatten>
<optional>true</optional>
<parameters>PUBLISH=true</parameters>
<selector class="hudson.plugins.copyartifact.LastCompletedBuildSelector"/>
</hudson.plugins.copyartifact.CopyArtifact>
</builders>
</project>

View File

@@ -0,0 +1,9 @@
builders:
- copyartifact:
project: foo
filter: "*.txt"
target: /home/foo
which-build: last-completed
optional: true
flatten: true
parameter-filters: PUBLISH=true