Switch to ssh for git scm 33/133/2
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Oct 2018 22:20:43 +0000 (00:20 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Oct 2018 22:23:31 +0000 (00:23 +0200)
Change-Id: Ib165eddfd3f63e90d51fb55bc7fc3985ee0f7001
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/global/jjb-macros.yaml

index c5cd27f8e0e41f75d8179c5d9e7e713f25f1e8b3..78392e76e89b7cf2c9fac915f3bec7fa52f10f45 100644 (file)
           description: Non-interactive user to stream Gerrit Events on Nordix Gerrit
       - string:
           name: GIT_BASE_HTTPS
-          default: https://gerrit.nordix.org/
+          default: https://gerrit.nordix.org
           description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
       - string:
           name: GIT_BASE_SSH
-          default: ssh://$GERRIT_USER@gerrit.nordix.org:29418/
+          default: ssh://$GERRIT_USER@gerrit.nordix.org:29418
           description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
+      - string:
+          name: CREDENTIALS_ID
+          default: nordixinfra-nordix-gerrit-ssh
+          description: Nordix Infra SSH credentials for Nordix Gerrit
 
 - parameter:
     name: onap-gerrit-parameters
           description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
       - string:
           name: GIT_BASE_HTTPS
-          default: https://gerrit.onap.org/r/p/
+          default: https://gerrit.onap.org/r/p
           description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
       - string:
           name: GIT_BASE_SSH
-          default: ssh://$GERRIT_USER@gerrit.onap.org:29418/
+          default: ssh://$GERRIT_USER@gerrit.onap.org:29418
           description: SSH URL to Project Repo on ONAP Gerrit to clone repo
+      - string:
+          name: CREDENTIALS_ID
+          default: nordixinfra-lfn-gerrit-ssh
+          description: Nordix Infra SSH credentials for LFN Gerrit
 
 # defaults for job build history
 - property:
@@ -73,7 +81,8 @@
     name: git-scm
     scm:
       - git:
-          url: '$GIT_BASE_HTTPS/$PROJECT'
+          url: '$GIT_BASE_SSH/$PROJECT'
+          credentials-id: '$CREDENTIALS_ID'
           branches:
             - 'refs/heads/{branch}'
           refspec: '{refspec}'
     name: git-scm-gerrit
     scm:
       - git:
-          url: '$GIT_BASE_HTTPS/$PROJECT'
+          url: '$GIT_BASE_SSH/$PROJECT'
+          credentials-id: '$CREDENTIALS_ID'
           branches:
             - 'refs/heads/{branch}'
           refspec: '{refspec}'