Created attachment 603231 [details] Error msg page when enable jenkins build. Description of problem: First, I created an php application named "php2", and a jenkins server application named "JENKINS". Then I tried to "Enable Jenkins Build" to "php2" and got error message like the attachment #1 [details] shown. And I got the development.log of broker which is attached as well. Version-Release number of selected component (if applicable): devenv_1955 How reproducible: always Steps to Reproduce: 1.Create a php application named "php2" 2.Create a jenkins server application named "JENKINS" 3.Go to php2 overview page, click the "Enable Jenkins Build" button, then click "Add jenkins" in the following page. Actual results: Get error message,and failed to add jenkins client. Expected results: It should be added correctly with successful message. Additional info: If I created jenkins server with a lowercase name, jenkins client will be added successfully.
Created attachment 603233 [details] the development.log of /var/www/stickshift/broker/log/development.log.
Client side will meet same issue, if it's the same issue in US1787 after Devs confirmed, we could close it as upstream #rhc app cartridge add -a scalephp1 -c jenkins-client-1.4 -p 1 Problem reported from server. Response code was 500. Re-run with -d for more information. RESULT: Could not add job 'scalephp1-build' in Jenkins server: You'll need to correct this error before attempting to embed the Jenkins client again.
Tested this issue on INT(devenv_2111), the same issue exits if I used a capitalized domain name.
Tested this issue on INT today, it will give error message when using a domain name which has capitalized letter, like "Hhh", could you please check if we can fix this in this sprint?
Recreated this today by doing the following: 1. Create jenkins app named 'JENKINS' 2. Create php app named 'phptest' 3. Add jenkins-client cartridge to phptest app. Output: ★ pmorie:~/code/apps $ rhc app cartridge add -a phptest -c jenkins-client-1.4 Password: Problem reported from server. Response code was 500. Re-run with -d for more information. RESULT: Could not add job 'phptest-build' in Jenkins server: create_job status: 400 You'll need to correct this error before attempting to embed the Jenkins client again.
(In reply to comment #6) I think it happens not only on Jenkins, almost all the other cartridges, there's a user story about this: US1787.
Jenkins doesn't like getting posted to with the capitalized JENKINS in the url. I've added calls to .downcase in a couple places as a fix.
Pull request for fix: https://github.com/openshift/crankcase/pull/514
(In reply to comment #9) > Pull request for fix: https://github.com/openshift/crankcase/pull/514 Move it to ON_QA since above pull request is merged to master
For bug 859828 have not been fixed, I cannot verify this bug now, will verify it when bug 859828 fixed.
Tested this issue on INT(devenv_2221).When I used "Jenkins" as the name of jenkins server name, and used "DDDD" as domain name, I can add jenkins to apps successfully. SO I will verify this bug.