I have identified the source of my problem to be a failure of a copy 
command run via maven-antrun-plugin. No error message was logged but copy 
had failed as there were files owned by a different user than jenkins user 
in the target directory of the copy. I was focusing on test failures (there 
were none) but realize now that maven build can fail outside of tests for 
any number of reasons (e.g. copy failure). The only question is why is the 
error message from copy failure not in the log.

This is what my log looks like (notice no copy error message):

     [copy] No sources found.
     [copy] Copying 1 file to /var/xxx/docroot/plugins
     [copy] Copying 
/var/lib/jenkins/workspace/xxx/target/xxx-4.14-SNAPSHOT.jar to 
/var/xxx/docroot/plugins/xxx-4.14-SNAPSHOT.jar
[BFA] Scanning build for known causes...

[BFA] Done. 0s


This is what my maven-antrun-plugin config looks like:

                    <plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>install-static-resources</id>
                                <phase>install</phase>
                                <configuration>
                                    <tasks>
                                        <mkdir dir="/var/xyz/docroot" />
                                        <unzip 
src="target/myproject-${project.version}.zip" dest="/var/xyz/docroot/" />
                                    </tasks>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>            


On Tuesday, September 17, 2013 4:53:11 PM UTC-4, Farrukh Najmi wrote:
>
> Thank guys for helping. 
>
> The JENKIS-19352 issue seems to result in false negatives. I am getting 
> what appears to be false positives.
>
> Vincent Latombe <[email protected]> wrote:
>
> Hi,
>
> this is probably yet another occurrence of 
> https://issues.jenkins-ci.org/browse/JENKINS-19352 (since 1.526) . Try 
> the same with a freestyle job.
>
> Vincent
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to