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)
      

          [JENKINS-32391] Add support for Perforce p4 plugin

          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-32391 Basic implementation of Perforce P4 plugin support.

          SCM/JIRA link daemon added a comment - 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-32391 Basic implementation of Perforce P4 plugin support.

          Code changed in jenkins
          User: Daniel Spilker
          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/main/groovy/javaposse/jobdsl/dsl/helpers/scm/P4WorkspaceContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/ScmContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/0e14c7f9902288460d414e48d2e60983867b2554
          Log:
          Merge remote-tracking branch 'rgal/JENKINS-32391'

          Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/7ba339bdab4c...0e14c7f99022

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker 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/main/groovy/javaposse/jobdsl/dsl/helpers/scm/P4WorkspaceContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/ScmContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/0e14c7f9902288460d414e48d2e60983867b2554 Log: Merge remote-tracking branch 'rgal/ JENKINS-32391 ' Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/7ba339bdab4c...0e14c7f99022

          Will be released in 1.44.

          Daniel Spilker added a comment - Will be released in 1.44.

            daspilker Daniel Spilker
            rg Russell Gallop
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: