anchor.diff:    triggers {
       gerrit {
         events {
  -        PatchsetCreated
  -        DraftPublished
  +        patchsetCreated()
  +        draftPublished()
         }
         project("${project_name}", "dev")
       }
  
positive.code: }
  
  job(type: Maven) {
    name "${project_name}/fb-build"
    description("<p>This job builds feature branch code, run unit tests and triggered job with functional tests. Source code: <code>${git_url}</code></p>")
    jdk("/usr/lib/jvm/java/")
    configure { project ->
      project << globalSettings(class:'org.jenkinsci.plugins.configfiles.maven.job.MvnGlobalSettingsProvider', plugin:'config-file-provider@<%= @plugins['config-file-provider'] %>') {
        settingsConfigId('<%= @settings_id %>')
      }
    }
    scm {
      git {
        remote {
          name('origin')
          url(git_url)
        }
        branch('*/fb-*')
      }
    }
    triggers {
      gerrit {
        events {
          RefUpdated
        }
        project("${project_name}", "ant:fb-*")
      }
  
negative.code:   triggers {
      gerrit {
        events {
          changeMerged()
        }
        project("${project_name}", 'plain:dev')
      }
  