0
我有以下我的CI環境指南針詹金斯CI編譯
cd /var/www/html
php vendor/bin/phpunit app/tests --log-junit /var/lib/jenkins/jobs/Closecall/workspace/tests/reports/junit.xml
php vendor/bin/phinx migrate -e development
sudo compass compile
ssh方式連接到CI和編譯自己工作正常執行腳本,但是當CI上構建執行這個我收到以下錯誤
+ sudo compass compile
sudo: no tty present and no askpass program specified
Build step 'Execute shell' marked build as failure
Recording test results
Finished: FAILURE
任何想法?
我固定它做類似的東西,加入詹金斯NOPASSWD記錄到visudo命令文件。這似乎應該也可以工作,謝謝! –