-
Bug
-
Resolution: Fixed
-
Minor
While trying to bootstrap a Jenkins instance through configuration as code and seed jobs we tried to do something like is showcased here https://github.com/jenkinsci/configuration-as-code-plugin/blob/configuration-as-code-1.46/demos/jobs/bitbucket.yaml
Here's is what we tried:
organizationFolder('Gitea demo Folder') { description("Track demo Gitea repositories and their events") displayName('Gitea demo') organizations { gitea { serverUrl("https://localhost:3000") repoOwner("demo") credentialsId("2d7e92d6-072d-407a-8389-976e7222fd09") } } }
and the error message:
Started by user jenkins Running as SYSTEM Building in workspace /var/jenkins_home/workspace/gitea-seed-job Processing provided DSL script ERROR: (script, line 6) No signature of method: javaposse.jobdsl.dsl.helpers.workflow.ScmNavigatorsContext.gitea() is applicable for argument types: (script$_run_closure1$_closure2$_closure3) values: [script$_run_closure1$_closure2$_closure3@2642e6e7] Possible solutions: grep(), with(groovy.lang.Closure), grep(java.lang.Object), getAt(java.lang.String), wait(), find() Finished: FAILURE
I can't for the life of me figure out where those methods should exist, but if someone can point me in the right direction we can implement a pull request.