-
New Feature
-
Resolution: Fixed
-
Minor
Plugin: https://wiki.jenkins-ci.org/display/JENKINS/P4+Plugin
The Job DSL Plugin support the "Perforce Plugin" but not the "P4 Plugin". The "P4 Plugin" has the distinct advantage of working with credentials.
For my requirements "Manual (Custom view)" is the only Workspace behaviour required. This would be a good starting point for supporting this plugin.
Unfortunately the perforce plugin support is already using the DSL syntax p4. Support for the p4 plugin could use the term perforce instead. e.g.
perforce(String credentials, String workspace_name, String viewspec, Closure configure = null)
Code changed in jenkins
User: Russell Gallop
Path:
docs/Home.md
job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/ScmContext/perforcep4.groovy
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/ScmContext.groovy
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/scm/P4Context.groovy
job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/ScmContextSpec.groovy
http://jenkins-ci.org/commit/job-dsl-plugin/c0f637fa86bf8be2a101438e5290e6df55adf935
Log:
JENKINS-32391Basic implementation of Perforce P4 plugin support.