when we select Build With Parameters for any pipelines it gives 405. The Pipeline if it doesn’t have any parameters the build runs fine.
Deployed Jenkins on Kubernetes using helm
Jenkins version : 2.332.3
Additional configuration in Jenkins Values
-Dhudson.model.UpdateCenter.never=true
-Djava.io.tmpdir=/var/jenkins_home
containerSecurityContextOverride:
runAsUser: 1000
allowPrivilegeEscalation: False
readOnlyRootFilesystem: True
seccompProfile: {‘type’: ‘RuntimeDefault’}
poddingue
(Bruno Verachten)
June 29, 2022, 12:12pm
2
Hello @naveenmaka and welcome to this community
According to this answer you may want to use [url_to_job]/buildWithParameters
not [url_to_job]/build
.
Hope this helps.
halkeye
(Gavin Mogan)
June 29, 2022, 6:15pm
4
405 is method not allowed
Essentially your trying to do a GET not a POST.
yup agreed but the body for build with parameters is not loading in my case it shows the 405 error… i have other Jenkins when we select build with parameters even though it shows 405 in network the body of the page loads
poddingue
(Bruno Verachten)
June 30, 2022, 7:06am
6
Could you try a POST
request with Postman or whatever tool you have on hand so that we know more about you error?
Thanks.