Skip to content

Commit

Permalink
[Blackduck] Fix gerrit url change
Browse files Browse the repository at this point in the history
Update ngci library to 5.0 to work with the new gerrit url
Add credentials ID to support git clone via SSH instead of https

Issue: HPCINFRA-2289
Signed-off-by: NirWolfer <nwolfer@nvidia.com>
  • Loading branch information
NirWolfer authored and mike-dubman committed Jul 3, 2024
1 parent 7cdb136 commit 03f48de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vars/ngci.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
int call(ctx, oneStep, config) {
def args = oneStep.args

library(identifier: 'ngci@ci_version-3.1',
library(identifier: 'ngci@5.0',
retriever: modernSCM([$class: 'GitSCMSource',
remote: 'http://l-gerrit.mtl.labs.mlnx:8080/DevOps/Jenkins/ci_framework']))
remote: 'ssh://git-nbu.nvidia.com:12023/DevOps/Jenkins/ci_framework',
credentialsId: 'b7d08ca7-378c-45d6-ac4b-3f30bdf49168' ]))

if (args.size() < 1) {
ctx.reportFail(oneStep.name, 'fatal: DynamicAction() expects at least 1 parameter')
Expand Down

0 comments on commit 03f48de

Please sign in to comment.