Remove unnecessary git parameters from foreman parameter macro 69/569/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 15 May 2015 13:34:34 +0000 (15:34 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 15 May 2015 13:48:42 +0000 (15:48 +0200)
JIRA: OCTO-47

Change-Id: I59d7323b972dea99efad09e514d87f5ccb054f28
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-foreman.yml

index 8522644..5fd1135 100644 (file)
     parameters:
         - project-parameter:
             project: '{project}'
-        - foreman-parameters:
-            installer: '{installer}'
         - gerrit-parameter:
             branch: 'master'
+        - foreman-parameter:
+            installer: '{installer}'
 
     scm:
         - gerrit-trigger-scm:
     parameters:
         - project-parameter:
             project: '{project}'
-        - foreman-parameters:
-            installer: '{installer}'
         - gerrit-parameter:
             branch: 'master'
+        - foreman-parameter:
+            installer: '{installer}'
 
     scm:
         - gerrit-trigger-scm:
     parameters:
         - project-parameter:
             project: '{project}'
-        - foreman-parameters:
+        - foreman-parameter:
             installer: '{installer}'
 
     scm:
-        - git:
-            skip-tag: true
-            url: $GIT_BASE
-            branches:
-                - $GERRIT_BRANCH
-            refspec: $GERRIT_REFSPEC
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: master
 
     triggers:
-        - pollscm: '@midnight'
+        - timed: '@midnight'
 
     logrotate:
         daysToKeep: 30
     parameters:
         - project-parameter:
             project: '{project}'
-        - foreman-parameters:
+        - foreman-parameter:
             installer: '{installer}'
 
     scm:
-        - git:
-            skip-tag: true
-            url: $GIT_BASE
-            branches:
-                - $GERRIT_BRANCH
-            refspec: $GERRIT_REFSPEC
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: master
 
     builders:
         - 'foreman-build'
     parameters:
         - project-parameter:
             project: '{project}'
-        - foreman-parameters:
+        - foreman-parameter:
             installer: '{installer}'
 
     scm:
-        - git:
-            skip-tag: true
-            url: $GIT_BASE
-            branches:
-                - $GERRIT_BRANCH
-            refspec: $GERRIT_REFSPEC
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: master
 
     builders:
         - 'foreman-deploy'
 # parameter macros
 ########################
 - parameter:
-    name: foreman-parameters
+    name: foreman-parameter
     parameters:
         - string:
             name: INSTALLER
             name: GIT_BASE
             default: https://gerrit.opnfv.org/gerrit/$PROJECT
             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
-        - string:
-            name: GERRIT_BRANCH
-            default: origin/master
-            description: "Branch to build, deploy and test."
-        - string:
-            name: GERRIT_REFSPEC
-            default: refs/heads/master
-            description: "Refspec to retrieve."
         - string:
             name: GS_URL
             default: artifacts.opnfv.org/$PROJECT/$INSTALLER