postbuild UIAutomation script not running in jenkins

前端 未结 4 2042
一向
一向 2021-02-07 18:12

I am trying to do End-to-End automation for an iOS project. My aim is to automate the continuous integration process with attaching UIAu

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 19:02

    Jenkins by default installs as a LaunchDaemon, which means it has insufficient permissions to launch WindowsServer.

    You’ll need to configure it as a LaunchAgent:

    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
    sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/org.jenkins-ci.plist
    

    Then login as Jenkins and keep a session open.

    If you don't know the Jenkins password you can change it with:

    sudo passwd jenkins
    

提交回复
热议问题