FATAL: No such property: com for class: test Possible solutions: jm groovy.lang.MissingPropertyException: No such property: com for class: test Possible solutions: jm at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at test.run(test.dsl:21) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:68) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:92) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:159) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567) at hudson.model.Run.execute(Run.java:1604) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246)
Any pointers or ways of positive guidance is much appreciated! Thanks!
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/0c1b4d8c-1924-4ea7-a4aa-26aa213209a5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAL%3DX-wUHxK%3DZfBMXiO8b1gr720yPrbxjwgs%2Bt3DPH-zhxEQwQA%40mail.gmail.com.
I think that is exactly what I am looking for, nothing complicated, just the ability to specify the credentials by name. Thanks for the great insight and help. I hope to be able to help contribute on the future as I am using write a few home grown "helpers" with this DSL awesomeness that may be good to expand the core functionality of the plugin.
You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/oE62HT0kbPM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAGNFQYWGb2k8%3D-6soVHCUyu%2B%3D3EhvhFTZ%2BtEPjZJ%2Bc8mLZbDvw%40mail.gmail.com.
You can get the credentials from the JobManagement interface. Here is an example how I set the credentials for the new Git Plugin 2.0:
gitHubCredentials = jm.getCredentialsId('my-credentials-description')
job {
..
scm {
github('some/project', branch) {
it / userRemoteConfigs / 'hudson.plugins.git.UserRemoteConfig' / credentialsId(gitHubCredentials)
}
}
..
}
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CALrM0AkWFxifOhw7GHbVMDdrgxFeijX3%2BVX2S%2BLi9DKkbLdbUw%40mail.gmail.com.
I don't think so. We are using it against a private Github Enterprise server.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/6d0034bb-4c03-4019-a8d6-d5e570fbe316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
job('example') { scm { git { remote { github('org/repo', 'https', 'github.example.org') credentials('github-ci-key') } } } }
Regards,
Daniel
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/38607e07-9d69-4c2a-8d69-161257f4ec55%40googlegroups.com.