anchor.diff:  			}
   	    }
           }
  -    }
  -}
  +	maven {
  +	    rootPOM("spring-petclinic-test/pom.xml")
  +	    goals('-P functional-test clean verify -Dpetclinic.version=${projectVersion}')
  +	    mavenInstallation(maven_installation)
  +    	    configure { project ->
  +    		    project << globalSettings(
  +                    class:'org.jenkinsci.plugins.configfiles.maven.job.MvnGlobalSettingsProvider',
  +                    plugin:"config-file-provider@<%= @plugins['config-file-provider'] %>"
  +                ) {
  +    			    settingsConfigId('<%= @settings_id %>')
  +    			}
  +    	    }
  +	}
  +    }
  +}
  
positive.code:     			}
      	    }
          }
          systemGroovyCommand(set_version)
          publishers {
              archiveArtifacts 'version.properties'
          }
          downstreamParameterized {
              trigger('dev-deploy') {
                  currentBuild()
              }
          }
      }
  }
  
  job {
      name "${project_name}/dev-deploy"
      parameters {
          configure { project ->
              project / 'properties' / 'hudson.model.ParametersDefinitionProperty' / 'parameterDefinitions' << 'hudson.plugins.copyartifact.BuildSelectorParameter'(
              plugin: 'copyartifact@<%= @plugins['copyartifact'] %>') {
                  name('BUILD_SELECTOR')
                  description('Build to deploy')
                  project << defaultSelector(class: "hudson.plugins.copyartifact.StatusBuildSelector")
              }
          }
          stringParam('QUBELL_APP_ID', '53eb65e9e4b0f24b4a52c0f2', 'Qubell Application ID')
          stringParam('QUBELL_ENV_ID', '53f5d94ce4b0b03d045f7a13', 'Qubell Env ID')
      }
      steps {
          copyArtifacts('dev-build', 'version.properties') {
              buildParameter('BUILD_SELECTOR')
          }
          environmentVariables {
              propertiesFile('version.properties')
          }
          configure { project ->
              project / builders << "com.qubell.jenkinsci.plugins.qubell.builders.StartInstanceBuilder"(
              plugin: "qubell@<%= @qubell_plugin_version %>") {
                  expectedStatus('RUNNING')
                  timeout('1200')
                  outputFilePath('qubell_output.json')
                  manifestRelativePath('')
                  environmentId('\${QUBELL_ENV_ID}')
                  applicationId('\${QUBELL_APP_ID}')
                  extraParameters(qubell_app_params)
              }
          }
      }
  }
  
  job(type: Maven) {
      name "${project_name}/fb-build"
      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 %>')
  		}
      }
  
negative.code:                 name('origin')
                  url(git_url)
              }
              branch('\${buildCommit}')
          }
      }
      preBuildSteps {
  	    configure { project ->
  		    project / prebuilders << "com.qubell.jenkinsci.plugins.qubell.builders.StartInstanceBuilder"(
  			    plugin: "qubell@2.5") {
  		    expectedStatus('RUNNING')
  		    timeout('1200')
  		    outputFilePath('qubell_output.json')
  		    manifestRelativePath('')
  		    environmentId('\${QUBELL_ENV_ID}')
  		    applicationId('\${QUBELL_APP_ID}')
  		    extraParameters(qubell_app_params)
  		    }
  	    }
      configure { // It's hack because for some reasone DSL does not add qubell plugin into job
  	    it / prebuilders << "hudson.plugins.groovy.SystemGroovy"(plugin: "groovy@1.20") {
  		    scriptSource(class : "hudson.plugins.groovy.StringScriptSource") {
  			    command """
  import groovy.json.JsonSlurper;
  import hudson.model.*;
  
  def qubellOutputFile = new File('qubell_output.json')
  def userJson = new JsonSlurper().parseText(qubellOutputFile.text)
  
  def build = Thread.currentThread().executable;
  def pa = new ParametersAction([
  new StringParameterValue('PETCLINIC_URL', userJson.'output.webapp_endpoint')
  ]);
  build.addAction(pa);
  """
  			    }
  		    }
  	    }
      }
  
      rootPOM("spring-petclinic-test/pom.xml")
      goals('-P integration-test clean verify -Dspring.profiles.active=remote -DREMOTE_WEBDRIVER_URL=${SELENIUM_URL} -Dpetclinic.url=${PETCLINIC_URL}')
      perModuleEmail(false)
      mavenInstallation(maven_installation)
      configure { project ->
  	    project << globalSettings(
  	    class:'org.jenkinsci.plugins.configfiles.maven.job.MvnGlobalSettingsProvider',
  	    plugin:"config-file-provider@<%= @plugins['config-file-provider'] %>"
  	) {
  		    settingsConfigId('<%= @settings_id %>')
  		}
      }
      
  }
  
  job(type: Maven) {
      name "${project_name}/fb-build"
      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-*')
          }
      }
  