Fix ssh-credentials-id for git-scm 34/134/1
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Oct 2018 22:37:19 +0000 (00:37 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Oct 2018 22:37:19 +0000 (00:37 +0200)
Change-Id: Id0a4aeb73a936f587acbc56962fd1aa028d13ea3
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/datafile/datafile-verify-jobs.yaml
jjb/global/jjb-macros.yaml
jjb/infra/jjb-merge-jobs.yaml
jjb/infra/jjb-verify-jobs.yaml

index 342a8f894f9a36347643a5374b599e1c73494da1..3a5829429bb871eb6eb69d59981e3628752ca058 100644 (file)
@@ -12,6 +12,7 @@
     stream:
       - nordix-dev:
           branch: '{stream}'
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
 
     jobs:
       - '{project-name}-{stream}-verify-java'
@@ -50,6 +51,7 @@
 
     scm:
       - git-scm-gerrit:
+          ssh-credentials-id: '{ssh-credentials-id}'
           branch: '{branch}'
           refspec: $GERRIT_REFSPEC
 
index 78392e76e89b7cf2c9fac915f3bec7fa52f10f45..c8b0b197a8ac6a65b47186dce69684b865f5b094 100644 (file)
           name: GIT_BASE_SSH
           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
           name: GIT_BASE_SSH
           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:
@@ -82,7 +74,7 @@
     scm:
       - git:
           url: '$GIT_BASE_SSH/$PROJECT'
-          credentials-id: '$CREDENTIALS_ID'
+          credentials-id: '{ssh-credentials-id}'
           branches:
             - 'refs/heads/{branch}'
           refspec: '{refspec}'
     scm:
       - git:
           url: '$GIT_BASE_SSH/$PROJECT'
-          credentials-id: '$CREDENTIALS_ID'
+          credentials-id: '{ssh-credentials-id}'
           branches:
             - 'refs/heads/{branch}'
           refspec: '{refspec}'
index 6505fedbfb9cee2ae432c2cc1b0ed2033cb5051b..cbd58155d5beb5636eb42377bb8d8b857ecca5cc 100644 (file)
@@ -11,6 +11,7 @@
     stream:
       - master:
           branch: '{stream}'
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
 
     jobs:
       - infra-jjb-merge-{stream}
@@ -34,6 +35,7 @@
 
     scm:
       - git-scm:
+          ssh-credentials-id: '{ssh-credentials-id}'
           branch: '{branch}'
           refspec: ''
 
index 469ad66a47df9ad8c1e1a7dc3abc112014098ad5..22d81af46edf0ff028f8897e44f07948ae5a6ef8 100644 (file)
@@ -11,6 +11,7 @@
     stream:
       - master:
           branch: '{stream}'
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
 
     jobs:
       - infra-jjb-verify-{stream}
@@ -34,6 +35,7 @@
 
     scm:
       - git-scm-gerrit:
+          ssh-credentials-id: '{ssh-credentials-id}'
           branch: '{branch}'
           refspec: $GERRIT_REFSPEC