Using the job DSL plugin v. 1.64, I can't automatically discover all my repositories and all it's branches within my GitHub organization folder.
I used the job DSL plugin v. 1.61 before.
This is the configuration view after executing the above script
scanCredentialsId("") and checkoutCredentialsId("") are now deprecated and replaced by credentialsId("github"). Now, the credentials work. But discovering all repositories and their branches doesn't seem to be possible anymore because the "includes", "excludes" methods also have been deprecated.
Now, with the following, fixed script, I don't get all the branches anymore:
This is the configuration page after executing the new script:
I now manually need to add the checkout behaviour "Discover branches -> All branches"
How can I automatically discover all repos and their branches using the DSL script?
I also tried the "fromSource" syntax as this one seems to have more options.
As you can see, I have tried to leave the string in the repository("") method empty, hoping that would cause it to discover all repos within my organization. I also tried asterisk: repository("*") which also led to an error.