0
我有我的項目在jenkins,當你建立它時,它找到腳本/ cibuild腳本並執行你在那裏的任何東西。我從我的項目目錄運行腳本,一切正常,我從詹金斯運行構建,我得到的錯誤?我不明白?不用說詹金斯ci如何構建工程
我的腳本/ cibuild腳本:
#!/bin/sh
# This script file is the entry point to ci.miranetworks.net build/test process.
# It is executed by jenkins, from the root directory
#
echo "1. cd into script "
cd script
echo "2. run createmysqldb test_traffic test_user password"
./createmysqldb test_traffic test_user password
echo "3. cd back into root dir "
cd ..
echo "4. create table with sql with: "
mysql -u test_user --password=password test_traffic < ./phoenix/data/sql/lib.model.schema.sql
export WORKSPACE=phoenix
export SYMFONY=$WORKSPACE/lib/vendor/symfony/lib
(cd $WORKSPACE
echo "6. Clearing the cache"
./symfony cc
echo "7. Run unit test"
./symfony php test/unit/RbcTest.php
)
echo "8. All done and exiting"
exit 0
所以,當我登錄到mysql命令與MySQL -u test_user --password =密碼test_traffic是succesfull話,我GRANT ALL,我也得到:
ERROR 1045 (28000): Access denied for user 'test_user'@'localhost' (using password: YES)
雖然createmysqldb我做的:Q2 = 「GRANT ALL ON TO '$ 2' @ 'localhost' 的IDENTIFIED BY '$ 3'。」
任何人都可以解釋爲什麼我得到一個訪問被拒絕? 我有相同腳本的問題,而是要理清這個先:)
感謝
哎呀對不起不知道爲什麼外卡沒有顯示,但我確實有它的GRANT ALL ON asterisk.asterisk TO「$ 2」 @「localhost」的IDENTIFIED BY「$ 3」;」我asteriksk不想要顯示... – 2012-02-17 09:16:14