Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
7591251f
Commit
7591251f
authored
7 years ago
by
Zoltan Mathe
Browse files
Options
Downloads
Patches
Plain Diff
setup Bookkeeping jenkins tests
parent
c31c6174
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/Jenkins/dirac-bkk-cfg-update.py
+43
-0
43 additions, 0 deletions
tests/Jenkins/dirac-bkk-cfg-update.py
tests/Jenkins/lhcb_ci.sh
+5
-1
5 additions, 1 deletion
tests/Jenkins/lhcb_ci.sh
with
48 additions
and
1 deletion
tests/Jenkins/dirac-bkk-cfg-update.py
0 → 100644
+
43
−
0
View file @
7591251f
#!/usr/bin/env python
"""
update local cfg file for the bkk database
"""
from
DIRAC.Core.Base
import
Script
from
DIRAC
import
gLogger
Script
.
registerSwitch
(
'
p:
'
,
'
passwd=
'
,
'
<passwd>, is the password of the accounts
'
)
Script
.
setUsageMessage
(
'
\n
'
.
join
(
[
__doc__
.
split
(
'
\n
'
)[
1
],
'
Usage:
'
,
'
%s [option|cfgfile] ... passwd
'
%
Script
.
scriptName
,
'
Arguments:
'
,
'
passwd: password
'
]
)
)
Script
.
parseCommandLine
()
passwd
=
''
for
switch
in
Script
.
getUnprocessedSwitches
():
if
switch
[
0
].
lower
()
in
(
'
p
'
,
'
passwd
'
):
passwd
=
switch
[
1
]
if
not
passwd
:
gLogger
.
error
(
"
Error: No argument provided
\n
%s:
"
%
Script
.
scriptName
)
Script
.
showHelp
()
exit
(
1
)
from
DIRAC.ConfigurationSystem.Client.CSAPI
import
CSAPI
csAPI
=
CSAPI
()
for
sct
in
[
'
Systems/Bookkeeping
'
,
'
Systems/Bookkeeping/Production
'
,
'
Systems/Bookkeeping/Production/Databases
'
,
'
Systems/Bookkeeping/Production/Databases/BookkeepingDB
'
]:
res
=
csAPI
.
createSection
(
sct
)
if
not
res
[
'
OK
'
]:
gLogger
.
error
(
res
[
'
Message
'
]
)
exit
(
1
)
csAPI
.
setOption
(
'
Systems/Bookkeeping/Production/Databases/BookkeepingDB/LHCbDIRACBookkeepingUser
'
,
'
LHCB_DIRACBOOKKEEPING_INT_R
'
)
csAPI
.
setOption
(
'
Systems/Bookkeeping/Production/Databases/BookkeepingDB/LHCbDIRACBookkeepingServer
'
,
'
LHCB_DIRACBOOKKEEPING_INT_W
'
)
csAPI
.
setOption
(
'
Systems/Bookkeeping/Production/Databases/BookkeepingDB/LHCbDIRACBookkeepingPassword
'
,
passwd
)
csAPI
.
setOption
(
'
Systems/Bookkeeping/Production/Databases/BookkeepingDB/LHCbDIRACBookkeepingTNS
'
,
'
int12r
'
)
csAPI
.
commit
()
This diff is collapsed.
Click to expand it.
tests/Jenkins/lhcb_ci.sh
+
5
−
1
View file @
7591251f
...
...
@@ -377,6 +377,10 @@ function sourcingEnv(){
source
$PILOTINSTALLDIR
/environmentLHCbDirac
}
function
setupBKKDB
(){
echo
-e
"==> Seting up the Bookkeeping Database"
python
$TESTCODE
/LHCbDIRAC/tests/Jenkins/dirac-bkk-cfg-update.py
-p
VAR_DB_Password
$DEBUG
}
#-------------------------------------------------------------------------------
#EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment