Closed pcarney8 closed 6 years ago
The container cap part looks good and functioned as expected. But I agree with the others, that the JENKINS_URL field should at least be changed to something more generic, but ideally something along the lines of what @mcanoy suggested.
@mcanoy @logandonley I put kevin's suggestion right into the configure-jenkins.groovy
file!
@oybed removed JENKINS_URL
One other note here. This will only work when the route is named jenkins
. We pretty much always use this name. If we want to cover edge cases I would recommend looking at using a label that we can use by convention. I would suggest the name label. Then we could pull that label from the running pod and assume by convention that the route would use this name as well - or we could add that label to the route
oc get po $HOSTNAME} -o jsonpath={.metadata.labels.name}
@mcanoy yeah good point. I was just trying to get this up as quickly as possible. i'll add that on when i have time
also increase the container cap so pods don't hang