Today. I relaunched the job -> Same result. So it is reproductible.
I disabled McAfee LiveSafe - Internet Security real time analysis and rerun the job. Now it run correctly:
[Pipeline] bat
[myPipeline] Running batch script
C:\Program Files (x86)\Jenkins\workspace\myPipeline>C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\bin\mvn -B verify
'C:\Program' is not recognized as internal or external command...
[Pipeline] } //node
Obviously it is another error now (I will dig this topic in another JIRA) but Maven has been installed.
If I re-enable McAfee and i run the job again, of course the Maven installation issue won't occur since it is already installed.
The main question is : How can it be fixed to avoid antivirus issue when dynamically install Maven or any other tool? We can't ask to disable antivirus because the installation event could not be defined beforehand.
|