Versions Compared

Key

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

...

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 used to set up the pretested integration plugin.

Note: The order of job step declaration appears to matter. If you configure your job to clean up the ready branches after it's finished, be sure to place the plugin configuration block before the cleanup block. Otherwise the plugin will fail, seeing as the branch is removed before it can even start its work.

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') {}
          }
     }
}

...