Red Hat Bugzilla – Bug 848661
confusing warning message when adding jenkins client to an app
Last modified: 2015-05-14 18:57:55 EDT
Description of problem:
Jenkins server new created, app new created, add jenkins client to the app, will get some warning about "Associated with existing job 'php1-build' in Jenkins server."
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a jenkins app
2.Create an app of any type
3.Embed the jenkins client to the app
$rhc app cartridge add -a app1 -c jenkins-client-1.4
$rhc app cartridge add -a php1 -c jenkins-client-1.4
Associated with existing job 'php1-build' in Jenkins server.
If this was not intended you can remove the jenkins client, remove or rename
the existing job, and re-add the jenkins client to get a new job created.
Job URL: https://jk1-bmengdev.dev.rhcloud.com/job/php1-build/
Jenkins client 1.4 has been added to: php1
Should not have the warning about exsiting job since the jenkins server is new created, and doesn't have such job actually.
The Job gets created for each application, in this case "php1-build" is the name of the Job in Jenkins.
How about I just get rid of "existing" since that's confusing?
I think the whole sentence should not show up when the app embed jenkins for the first time.
In the past, this warning show up when user removed the embedded jenkins client from existed apps and try to add the jenkins client to the same apps again.
Verified on devenv_2042
1.Create a jenkins server
2.Create an application and embed jenkins-client, check output
Associated with job 'ps1-build' in Jenkins server.
Job URL: https://jks-2042t1.dev.rhcloud.com/job/ps1-build/
Jenkins client 1.4 has been added to: ps1