Skip to content

Commit

Permalink
use get_jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 14, 2024
1 parent a37b662 commit 26f2983
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions repo_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, JENKINS_HOST
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, get_jenkins
from os.path import dirname, abspath

GH_TOKEN = "~/.github-token"
Expand All @@ -9,7 +9,7 @@
CREATE_EXTERNAL_ISSUE = True
CHECK_DPG_POG = True
NONBLOCKING_LABELS = True
JENKINS_SERVER = "http://%s.cern.ch:8080/jenkins" % JENKINS_HOST
JENKINS_SERVER = get_jenkins("jenkins")
IGNORE_ISSUES = {
GH_CMSSW_ORGANIZATION + "/" + GH_CMSSW_REPO: [12368],
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, CMS_JENKINS_HOST
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, get_jenkins
from os.path import basename, dirname, abspath

GH_TOKEN = "~/.github-token-cmsbot"
Expand All @@ -9,7 +9,7 @@
GH_REPO_NAME = "ConditionsValidation"
GH_REPO_FULLNAME = GH_REPO_ORGANIZATION + "/" + GH_REPO_NAME
CREATE_EXTERNAL_ISSUE = False
JENKINS_SERVER = "http://%s.cern.ch:8080/cms-jenkins" % CMS_JENKINS_HOST
JENKINS_SERVER = get_jenkins("cms-jenkins")
ADD_LABELS = False
ADD_WEB_HOOK = True
JENKINS_UPLOAD_DIRECTORY = "HcalConditionsAutomatization/ConditionsValidation"
Expand Down
2 changes: 1 addition & 1 deletion repos/cms_patatrack/cmssw/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
GH_REPO_ORGANIZATION = "cms-patatrack"
GH_REPO_FULLNAME = "cms-patatrack/cmssw"
CREATE_EXTERNAL_ISSUE = False
# Jenkins CI server: User default http://CMS_JENKINS_HOST.cern.ch:8080/cms-jenkins
# Jenkins CI server: User default http://cms-jenkins.cern.ch:8080/cms-jenkins
JENKINS_SERVER = get_jenkins("cms-jenkins")
# GH Web hook pass phrase. This is encrypeted used bot keys.
GITHUB_WEBHOOK_TOKEN = """U2FsdGVkX19C9pvh4GUbgDDUy0G9tSJZu7pFoQ0QodGMQtb/h4AFOKPsBxKlORAz
Expand Down
6 changes: 3 additions & 3 deletions repos/dmwm/CRABServer/repo_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, DMWM_JENKINS_HOST
from cms_static import GH_CMSSW_ORGANIZATION, GH_CMSSW_REPO, CMSBUILD_GH_USER, get_jenkins
from os.path import basename, dirname, abspath

# GH read/write token: Use default ~/.github-token-cmsbot
Expand All @@ -11,8 +11,8 @@
GH_REPO_ORGANIZATION = basename(dirname(CONFIG_DIR))
GH_REPO_FULLNAME = "dmwm/CRABServer"
CREATE_EXTERNAL_ISSUE = False
# Jenkins CI server: User default http://CMS_JENKINS_HOST.cern.ch:8080/cms-jenkins
JENKINS_SERVER = "http://%s.cern.ch:8080/dmwm-jenkins" % DMWM_JENKINS_HOST
# Jenkins CI server: User default http://cms-jenkins.cern.ch:8080/cms-jenkins
JENKINS_SERVER = get_jenkins("dmwm-jenkins")
# Set to True if you want bot to add build/test labels to your repo
ADD_LABELS = False
# Set to True if you want bot to add GH webhooks. cmsbot needs admin rights
Expand Down
2 changes: 1 addition & 1 deletion repos/iarspider_cmssw/cmssw/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
GH_REPO_ORGANIZATION = basename(dirname(CONFIG_DIR))
GH_REPO_FULLNAME = "iarspider-cmssw/cmssw"
CREATE_EXTERNAL_ISSUE = False
# Jenkins CI server: User default http://CMS_JENKINS_HOST.cern.ch:8080/cms-jenkins
# Jenkins CI server: User default http://cms-jenkins.cern.ch:8080/cms-jenkins
JENKINS_SERVER = "http://localhost:8080/cms-jenkins"
# GH Web hook pass phrase. This is encrypeted used bot keys.
# GITHUB_WEBHOOK_TOKEN = ""
Expand Down
2 changes: 1 addition & 1 deletion repos/smuzaffar/cmssw/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
GH_REPO_ORGANIZATION = basename(dirname(CONFIG_DIR))
GH_REPO_FULLNAME = "smuzaffar/cmssw"
CREATE_EXTERNAL_ISSUE = False
# Jenkins CI server: User default http://CMS_JENKINS_HOST.cern.ch:8080/cms-jenkins
# Jenkins CI server: User default http://cms-jenkins.cern.ch:8080/cms-jenkins
JENKINS_SERVER = get_jenkins("cms-jenkins")
# GH Web hook pass phrase. This is encrypeted used bot keys.
GITHUB_WEBHOOK_TOKEN = "U2FsdGVkX1+GEHdp/Cmu73+ctvrzSGXc9OvL+8bZyjOe6ZPkqr/GIPgpJHiEp+hR"
Expand Down

0 comments on commit 26f2983

Please sign in to comment.