From d17ae198f26dcce9b44300fcc5ccab0bf3420b2e Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Wed, 18 May 2022 08:18:11 -0400 Subject: [PATCH] Allow jenkins to specify github URL prefix Signed-off-by: Keith W. Campbell --- buildenv/jenkins/jobs/infrastructure/copyrightCheck.groovy | 5 +++-- buildenv/jenkins/jobs/infrastructure/lineEndingsCheck.groovy | 5 +++-- buildenv/jenkins/jobs/infrastructure/signedOffByCheck.groovy | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/buildenv/jenkins/jobs/infrastructure/copyrightCheck.groovy b/buildenv/jenkins/jobs/infrastructure/copyrightCheck.groovy index c01bc330414..0f8f17ef9b9 100644 --- a/buildenv/jenkins/jobs/infrastructure/copyrightCheck.groovy +++ b/buildenv/jenkins/jobs/infrastructure/copyrightCheck.groovy @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2017, 2021 IBM Corp. and others + * Copyright (c) 2017, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -21,7 +21,8 @@ *******************************************************************************/ Boolean FAIL = false -String SRC_REPO = 'https://github.com/${ghprbGhRepository}.git' +String SRC_HOST = params.SRC_HOST ?: 'https://github.com/' +String SRC_REPO = "${SRC_HOST}${ghprbGhRepository}.git" def BAD_FILES = [] String HASHES = '###################################' diff --git a/buildenv/jenkins/jobs/infrastructure/lineEndingsCheck.groovy b/buildenv/jenkins/jobs/infrastructure/lineEndingsCheck.groovy index 848b79abe64..e1ef254a15e 100644 --- a/buildenv/jenkins/jobs/infrastructure/lineEndingsCheck.groovy +++ b/buildenv/jenkins/jobs/infrastructure/lineEndingsCheck.groovy @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2017, 2021 IBM Corp. and others + * Copyright (c) 2017, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -21,7 +21,8 @@ *******************************************************************************/ Boolean FAIL = false -String SRC_REPO = 'https://github.com/${ghprbGhRepository}.git' +String SRC_HOST = params.SRC_HOST ?: 'https://github.com/' +String SRC_REPO = "${SRC_HOST}${ghprbGhRepository}.git" def BAD_FILES = [] String HASHES = '###################################' diff --git a/buildenv/jenkins/jobs/infrastructure/signedOffByCheck.groovy b/buildenv/jenkins/jobs/infrastructure/signedOffByCheck.groovy index 5cdf62cd04f..534463f22f0 100644 --- a/buildenv/jenkins/jobs/infrastructure/signedOffByCheck.groovy +++ b/buildenv/jenkins/jobs/infrastructure/signedOffByCheck.groovy @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2018, 2020 IBM Corp. and others + * Copyright (c) 2018, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -21,7 +21,8 @@ *******************************************************************************/ def FAIL = false -def SRC_REPO = 'https://github.com/${ghprbGhRepository}.git' +String SRC_HOST = params.SRC_HOST ?: 'https://github.com/' +String SRC_REPO = "${SRC_HOST}${ghprbGhRepository}.git" def HASHES = '###################################' def COMMITS = [] def BAD_COMMITS = []