How to create Jenkins jobs automatically in using JobDSL plugin
问题 I was trying to configure JobDSL plugin in Jenkins to automatically create Jenkins jobs for all repos in my Github account, and tried the following code snippet but it doesn't show any repos using Github API URL, so I found the issue was in authentication. Now I've configured the Github credentials in the Jenkins global configurations. My question is how can I add this credentials in the code snippet to authenticate. def organization = 'mygitorg' repoApi = new URL("https://api.github.com/orgs