You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every once in a while the build fails in Jenkins (we don't run these Ant builds outside Jenkins) like so:
mess:
[mess] Output: /var/lib/jenkins/jobs/nws/workspace/build/logs/pmd.xml
BUILD FAILED
/var/lib/jenkins/jobs/build-base.xml:72: Attribute formatter@toFile must be defined.
I suspect some sort of concurrency issue because I'm using the PHP Template Job for Jenkins which executes the code-quality tools in parallel, but I can't see how it could fail given that outputting the formatter@toFile value immediately before calling the PHPMD Ant task (all in the same thread) works fine.
My best guess (just came to me) since this started happening several months ago is that there must be a race condition when setting the ${log.dir} property from each parallel subtask (they all depend on the init target)--even though each is using the same value and properties are immutable in Ant.
I'm stumped, but I'm going to remove the depends="init" from each parallel task as a test. I added them only so you could call any individual task directly.
Has anyone else seen this problem?
The text was updated successfully, but these errors were encountered:
The properties, including log.dir are declared at the top of build.xml. Since the PHPMD Ant task only checks if the toFile attribute is non-empty--it doesn't look for a directory--I am back to square one and have no clue why it fails like this. :(
I have defined the task, macro, and target as follows, and this works 99% of the time:
Every once in a while the build fails in Jenkins (we don't run these Ant builds outside Jenkins) like so:
I suspect some sort of concurrency issue because I'm using the PHP Template Job for Jenkins which executes the code-quality tools in parallel, but I can't see how it could fail given that outputting the
formatter@toFile
value immediately before calling the PHPMD Ant task (all in the same thread) works fine.My best guess (just came to me) since this started happening several months ago is that there must be a race condition when setting the
${log.dir}
property from each parallel subtask (they all depend on theinit
target)--even though each is using the same value and properties are immutable in Ant.I'm stumped, but I'm going to remove the
depends="init"
from each parallel task as a test. I added them only so you could call any individual task directly.Has anyone else seen this problem?
The text was updated successfully, but these errors were encountered: