Plugin: https://wiki.jenkins.io/display/JENKINS/File+System+SCM

      The Job DSL Plugin supports pipelinejob but it will be interesting to load Jenkinsfile from file system instead of commit and currently it supports only Pipeline from git SCM

      https://github.com/jenkinsci/filesystem_scm-plugin/pull/2 

          [JENKINS-46393] Add support for File System SCM plugin

          After https://github.com/jenkinsci/job-dsl-plugin/pull/1051 and https://github.com/jenkinsci/filesystem_scm-plugin/pull/2 got merged, the file system SCM is supported through the Automtaically Generated DSL:

          pipelineJob(String name) {
            definition {
              cpsScmFlowDefinition {
                scm {
                  filesystem {
                    path(String value)
                    clearWorkspace(boolean value)
                    copyHidden(boolean value)
                  }
                }
                scriptPath(String value)
                lightweight(boolean value)
              }
            }
          } 
          

          Daniel Spilker added a comment - After https://github.com/jenkinsci/job-dsl-plugin/pull/1051 and https://github.com/jenkinsci/filesystem_scm-plugin/pull/2 got merged, the file system SCM is supported through the Automtaically Generated DSL : pipelineJob( String name) { definition { cpsScmFlowDefinition { scm { filesystem { path( String value) clearWorkspace( boolean value) copyHidden( boolean value) } } scriptPath( String value) lightweight( boolean value) } } }

          File System SCM plugin 2.0 has been released.

          Daniel Spilker added a comment - File System SCM plugin 2.0 has been released.

            daspilker Daniel Spilker
            juhnz andy tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: