1
我有很簡單的plist文件這是應該運行我的腳本:從launchDaemon運行bash腳本上MAC - 沒有連接到詹金斯
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.ci</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Users/Shared/Jenkins/Home/my_scripts/run_jenkins.sh</string>
</array>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/Users/Shared/Jenkins/Home/stdout.log</string>
<key>StandardErrorPath</key>
<string>/Users/Shared/Jenkins/Home/error.log</string>
</dict>
</plist>
,當我運行它沒有任何反應 - 我的意思是,當我運行sh run_jenkins.sh
它連接到我的詹金斯服務器。但是當我運行它從sudo launchctl org.jenkins-ci.plist
然後它不連接。我錯過了什麼嗎?
做這些日誌文件包含有用的東西? – trojanfoe