Appium version: 1.6.4
I am trying to run my Appium tests through Jenkins, and I've come across an error that I do not know how to resolve.
I am only trying to get this working on a computer that we're using as a build machine. Initially, I started the Appium server on that machine, then successfully ran my tests though Jenkins. I then updated my tests to start the Appium server programmatically. This works fine for the most part, but I sometimes find that I have to delete the "target" folder in order for my Maven project to be built. I thought that including the maven-clean-plugin in my pom.xml file would take care of that issue, but it did not.
If I delete the "target" folder and run my Appium project through Jenkins, the result is an unstable build. Here is a gist that shows exactly what I'm seeing in my logs: Jenkins_Appium_log
To summarize, I'm getting the following error when I run tests via Jenkins after updating my Appium tests to kick off the Appium server programmatically:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error:
Error: Killing process 2357 failed: Operation not permitted
at Promise.all.then (/usr/local/lib/node_modules/appium/node_modules/fkill/index.js:41:10) (WARNING: The server did not provide any stacktrace information)
(I also don't understand why the target folder needs to be deleted, so any insight into that would be greatly appreciated as well.)
Thanks for reading!