Red Hat Bugzilla – Bug 1290728
[devexp_public_640] Can add duplicate build steps in jenkins configure page
Last modified: 2015-12-11 11:51:29 EST
Version-Release number of selected component (if applicable):
Description of problem:
Can add several same build steps via "add build steps" in jenkins configure page, I think should control it
Steps to Reproduce:
1. logged in to openshift as a normal user and working with a project named wewang
2. Add the edit role to the default service account in the wewang project:
$ oc policy add-role-to-user edit system:serviceaccount:wewang:default
3. create is in project wewang and deploy the Jenkins service
$ oc new-app jenkins-ephemeral-template.json
$oc get route
NAME HOST/PORT PATH SERVICE LABELS INSECURE POLICY TLS TERMINATION
jenkins jenkins-wewang.router.default.svc.cluster.local jenkins template=jenkins-ephemeral-template edge
4. Visit jenkins webpage and select job "OpenShift Sample" to Configure
pull down "add build step", select "Check Deployment Success in openshift", will add the build step, do it again, can add it again
Can add duplicate build steps
Cannot add the same build steps
Unfortunately there is no way for the plugin to prevent you from adding duplicate steps. Jenkins does not provide that sort of hook point.
i'm not sure we want to prevent this anyway. I could want to check deployment success for multiple deployments.
Agreed - in fact the sample job in the image does that.