Hi,

for me it wis working fine, although the setup is slightly different:

1) I have the full refspec specified: refs/...:refs/...
2) Additionally I use the gerrit trigger checkout strategy to really build 
a specific change.

    checkout(changelog: false, poll: false, 
        scm: [$class: 'GitSCM', 
            branches: [[name: "$GERRIT_BRANCH"]], 
            doGenerateSubmoduleConfigurations: false, submoduleCfg: [], 
            userRemoteConfigs: [[refspec: 
GERRIT_REFSPEC+':'+GERRIT_REFSPEC, url: '....']],
            
extensions:[[$class:'hudson.plugins.git.extensions.impl.BuildChooserSetting', 

                
buildChooser:[$class:"com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"]
 
],
               [
            $class: 'PreBuildMerge',
            options: [
                fastForwardMode: 'NO_FF',
                mergeRemote: 'origin',
                mergeStrategy: 'MergeCommand.Strategy',
                mergeTarget: 'master'
            ]
        ] ]
        ])


$GERRIT_BRANCH is normal master, GERRIT_REFSPEC points at a specific 
change, like your pull request refspecs.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6a10e123-5825-455f-9c56-a1d9a0b2313f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to