Fix SCM macro usage of refspec, branches
[ci-management.git] / jjb / akraino-templates / akraino-jjb-docker.yaml
index 6c6afa5..597b0fb 100644 (file)
@@ -16,7 +16,7 @@
 #
 - job-template:
     id: 'akraino-project-stream-docker'
-    name: '{project}-{stream}-docker'
+    name: '{project-name}-{stream}-docker'
     project-type: freestyle
     node: '{build-node}'
 
       - lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
           git-url: '{git-url}/{project}.git'
-          refspec: ''
-          branch: '{branch}'
+          refspec: '$GERRIT_REFSPEC'
+          branch: '$GERRIT_BRANCH'
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
+          submodule-disable: false
           choosing-strategy: default
 
     builders:
@@ -54,7 +55,7 @@
 
 - job-template:
     id: 'akraino-project-stream-stage-docker'
-    name: '{project}-{stream}-stage-docker'
+    name: '{project-name}-{stream}-stage-docker'
     project-type: freestyle
     node: '{build-node}'
 
       - lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
           git-url: '{git-url}/{project}.git'
-          refspec: ''
-          branch: '{branch}'
+          refspec: '$GERRIT_REFSPEC'
+          branch: '$GERRIT_BRANCH'
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
+          submodule-disable: false
           choosing-strategy: default
 
     builders: