Daniel Spilker resolved Bug JENKINS-24985 as Not A Defect

configVersion 2 as been introduced with https://github.com/jenkinsci/perforce-plugin/commit/ea1acb177d01e4e311df9df1f8fc069ed0efd1c1, which is included in version 1.3.28 or later of the Perforce plugin. So you need to upgrade to at least that version.

I installed version 1.3.33 of the Perforce plugin and the following DSL script is working for me, no need for monkey patching:

job {
    name 'foo'
    scm {
	p4('testing') { node ->
            node / configVersion(2)
	    node / p4Client("\${JOB_NAME}")
	    node / p4Port("server:1666")
	    node / disableChangeLogOnly(true)
        }
    }
}

The Job DSL plugin does not set any configVersion to maintain compatibility with older versions of the Perforce plugin.

If you need any help, please post to the Google Group: https://groups.google.com/forum/?fromgroups#!forum/job-dsl-plugin.

Change By: Daniel Spilker (08/Feb/15 9:38 PM)
Status: Open Resolved
Resolution: Not A Defect
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to