Created attachment 676241 [details] console out Description of problem: Build jenkins failed for scalable cakephp applications. Version-Release number of selected component (if applicable): devenv_2657,STG How reproducible: always Steps to Reproduce: 1.Create a scalable cakephp app in website,and check the app url. 2.Enable jenkins to cakephp. 3.Build cakephp on jenkins server. Actual results: 1.the app url is accessable. 3.Build failed with following message: ------------------------------------- .... ERROR 2003 (HY000): Can't connect to MySQL server on '466283a7bf-devyujie.dev.rhcloud.com' (111) Exit code: 1 Build step 'Execute shell' marked build as failure Archiving artifacts Finished: FAILURE ------------------------------------- Expected results: 3, the scalable cakephp should be built successfully. Additional info: The non-scalable cakephp can be built successfully on jenkins server. For the scalable cakephp, I failed to connect the app's mysql using "mysql -u admin --password=qtSmwGTB-W1i -h 466283a7bf-devyujie.dev.rhcloud.com cakephpscale" in my machine. This problem seems caused by the mysql server connection problem.
Looks like it might just be the port isn't specified on the connection lines: https://github.com/openshift/cakephp-example/blob/master/.openshift/action_hooks/deploy /usr/bin/mysql -u "$OPENSHIFT_MYSQL_DB_USERNAME" --password="$OPENSHIFT_MYSQL_DB_PASSWORD" -h "$OPENSHIFT_MYSQL_DB_HOST" -e "select * from posts;" "$OPENSHIFT_APP_NAME" and /usr/bin/mysql -u "$OPENSHIFT_MYSQL_DB_USERNAME" --password="$OPENSHIFT_MYSQL_DB_PASSWORD" -h "$OPENSHIFT_MYSQL_DB_HOST" "$OPENSHIFT_APP_NAME" < "$OPENSHIFT_REPO_DIR/.openshift/action_hooks/cake.sql"
Also this has nothing to do with jenkins right? Just scaled cakephp.
Fixed in github
verified this on devenv_2679