It turned out how to make this work by simply running the terminal command in code
@Before
public void setUp() throws Exception {
closeSimulatorAndInstruments();
appium = Runtime.getRuntime().exec("/usr/local/bin/appium");
Thread.sleep(1000);
...
}
@After
public void tearDown() throws Exception {
captureScreenshot(testName.getMethodName());
driver.quit();
appium.destroy();
}
CI, jenkins, , , , . , appium , . , appium, .