Browse Source

jenkins_debian_glue.pp: update CopyArtifact configuration

For some reason current versions of Jenkins with TAP plugin fail to
retrieve the artifacts and the jenkins-debian-glue-piuparts job fails
with:

| Unable to find a build for artifact copy from: jenkins-debian-glue-binaries
| Build step 'Copy artifacts from another project' marked build as failure
| TAP Reports Processing: START
| Looking for TAP results report in workspace using pattern: piuparts.tap
| Did not find any matching files.

The 'Parameter filters' option from the 'Copy artifacts from another
project' setting gets set to "architecture=$architecture" when using
the 'projectName' tag. By using
'jenkins-debian-glue-binaries/architecture=$architecture' inside the
'project' tag the 'Parameter filters' option is empty again and does
what it is supposed to do.
merge-requests/109/head
Michael Prokop 9 years ago
parent
commit
1f7226d562
  1. 7
      puppet/jenkins_debian_glue.pp

7
puppet/jenkins_debian_glue.pp

@ -466,7 +466,7 @@ class jenkins::config {
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.plugins.copyartifact.CopyArtifact>
<projectName>jenkins-debian-glue-binaries/architecture=\$architecture</projectName>
<project>jenkins-debian-glue-binaries/architecture=\$architecture</project>
<filter>*.deb</filter>
<target>artifacts/</target>
<selector class='hudson.plugins.copyartifact.TriggeredBuildSelector'>
@ -485,12 +485,17 @@ sudo piuparts_wrapper \${PWD}/artifacts/*.deb || true</command>
<publishers>
<org.tap4j.plugin.TapPublisher>
<testResults>piuparts.tap</testResults>
<failIfNoResults>false</failIfNoResults>
<failedTestsMarkBuildAsFailure>false</failedTestsMarkBuildAsFailure>
<outputTapToConsole>false</outputTapToConsole>
<enableSubtests>true</enableSubtests>
<discardOldReports>false</discardOldReports>
<todoIsFailure>false</todoIsFailure>
</org.tap4j.plugin.TapPublisher>
<hudson.tasks.ArtifactArchiver>
<artifacts>piuparts.*</artifacts>
<latestOnly>false</latestOnly>
<allowEmptyArchive>false</allowEmptyArchive>
</hudson.tasks.ArtifactArchiver>
</publishers>
<buildWrappers>

Loading…
Cancel
Save