-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
jenkins 1.609.3
job-dsl-plugin 1.38
credentials plugin 1.23
git plugin 2.4.0
job dsl plugin documentation has this example:
// use the github-ci-key credentials for authentication with GitHub job('example-1') { scm { git { remote { github('account/repo', 'ssh') credentials('github-ci-key') } } }
I'm trying to use it in similar manner:
freeStyleJob("layer-${section}") { scm { git { remote { url(src_uri) } cloneTimeout(30) credentials("github-ouruser-ssh") } } triggers { scm('H/5 * * * *') } }
As result, getting error:
ERROR: (script, line 21) No signature of method: javaposse.jobdsl.dsl.helpers.scm.GitContext.credentials() is applicable for argument types: (java.lang.String) values: [github-ouruser-ssh]
Which part is wrong ? documentation, my script or something else in environment ?