| Here is an (ugly) workaround: Use a normal pipeline job with the gerrit trigger. Have the pipeline execute a simple bootstrapping script, which loads the correct Jenkinsfile. The script might look like this: {{ #!/usr/bin/env groovy node('label') { stage 'Checkout' { // Checkout the patch set we're testing. // See https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger#GerritTrigger-PipelineJobs // Using Gerrit Trigger with Pipeline jobs. git url: 'ssh://foo@gerrit/repository' def changeBranch = "change-$ {GERRIT_CHANGE_NUMBER} -$ {GERRIT_PATCHSET_NUMBER} " sh "git fetch origin $ {GERRIT_REFSPEC} :$ {changeBranch}" sh "git checkout ${changeBranch} " sh "git clean -d -f -q -x" } // The rest comes from the repository itself! load 'Jenkinsfile' } }} |