anchor.diff:  	    project('${project_name}', 'dev')
           }
       }
  -    goals('-e')
  -    goals('clean')
  -    goals('install')
  +	    goals('-e')
  +	    goals('clean')
  +	    goals('install')
  +	    mavenInstallation(maven_installation)
  +    postBuildSteps {	    
  +	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 %>')
  +    			}
  +    	    }
  +	}
  +    }
       perModuleEmail(false)
  -    mavenInstallation(maven_installation)
   }
   
   job(type: Maven) {
  
positive.code:                 -DartifactId=asf-webapp-demo
                  -Dversion=\${buildVersion}
                  -Dpackaging=war
                  -DrepositoryId=builds
                  -Dfile=\${WORKSPACE}/target/petclinic.war
                  -Durl=\${NEXUS_URL}/content/repositories/builds""")
      	    configure { project ->
      		    project << globalSettings(
                      class:'org.jenkinsci.plugins.configfiles.maven.job.MvnGlobalSettingsProvider',
  
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-*')
          }
      }
  