Fix checkout GitSCM syntax to properly check out a specific commit

Change-Id: I9aa3aecd63b41997d5c65b46b85488f4463b1e28
diff --git a/jjb/pipeline/docker-publish.groovy b/jjb/pipeline/docker-publish.groovy
index dce23f1..9b2e74b 100644
--- a/jjb/pipeline/docker-publish.groovy
+++ b/jjb/pipeline/docker-publish.groovy
@@ -25,10 +25,8 @@
       steps {
         checkout([
           $class: 'GitSCM',
-          userRemoteConfigs: [[
-            url: "${params.gitUrl}",
-            name: "${params.gitRef}",
-          ]],
+          userRemoteConfigs: [[ url: "${params.gitUrl}", ]],
+          branches: [[ name: "${params.gitRef}", ]],
           extensions: [
             [$class: 'WipeWorkspace'],
             [$class: 'RelativeTargetDirectory', relativeTargetDir: "${params.projectName}"],
diff --git a/jjb/pipeline/synopsys-check.groovy b/jjb/pipeline/synopsys-check.groovy
index 18139dd..e413117 100644
--- a/jjb/pipeline/synopsys-check.groovy
+++ b/jjb/pipeline/synopsys-check.groovy
@@ -92,10 +92,8 @@
             sh "echo Checking out: ${gitRepo}"
             checkout(changelog: false, scm: [
                 $class: 'GitSCM',
-                userRemoteConfigs: [[
-                  url: "${params.git_server_url}/${gitRepo}/",
-                  name: "${branch}",
-                ]],
+                userRemoteConfigs: [[ url: "${params.git_server_url}/${gitRepo}/", ]],
+                branches: [[ name: "${branch}", ]],
                 extensions: [
                   [$class: 'RelativeTargetDirectory', relativeTargetDir: "${gitRepo}"],
                   [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
diff --git a/jjb/pipeline/synopsys-single.groovy b/jjb/pipeline/synopsys-single.groovy
index 2cbef34..96a3bd0 100644
--- a/jjb/pipeline/synopsys-single.groovy
+++ b/jjb/pipeline/synopsys-single.groovy
@@ -42,10 +42,8 @@
       steps {
         checkout([
           $class: 'GitSCM',
-          userRemoteConfigs: [[
-            url: "${params.gitUrl}",
-            name: "${params.gitRef}",
-          ]],
+          userRemoteConfigs: [[ url: "${params.gitUrl}", ]],
+          branches: [[ name: "${params.gitRef}", ]],
           extensions: [
             [$class: 'WipeWorkspace'],
             [$class: 'RelativeTargetDirectory', relativeTargetDir: "${params.projectName}"],