Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Basically the same setup needs to be applied if using the Multiple SCMs plugin, but you can benefit from additional behaviours like checking each git repository out to a subdirectory if needed. Still every git repository must be explicitly and uniquely named.

Job DSL

At the moment, the plugin lacks proper Job DSL support. It can, however, be configured through XML manipulation. Below is an example of a job configuration block, setting up the pretested integration plugin.

No Format

configure { project ->
      project / 'buildWrappers' << 'org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationBuildWrapper' {
          'scmBridge'(class:'org.jenkinsci.plugins.pretestedintegration.scm.git.GitBridge'){
               branch 'master'
               reponame 'origin'
               integrationStrategy(class:'org.jenkinsci.plugins.pretestedintegration.scm.git.SquashCommitStrategy') {}
          }
     }
}

Acknowledgement

Code contributions were initially made by Computer Science students at University of Copenhagen as part of a study project

...