Skip to content

Commit ddfd63e

Browse files
committed
Adding jenkins job for maintainer tool
Signed-off-by: Deepali Kasture <[email protected]>
1 parent 4d81054 commit ddfd63e

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

ceph-maintainer-tool/build/build

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# the following two methods exist in scripts/build_utils.sh
4+
pkgs=( "python-ldap" )
5+
TEMPVENV=$(create_venv_dir)
6+
VENV=${TEMPVENV}/bin
7+
8+
source $VENV/activate
9+
10+
install_python_packages $TEMPVENV "pkgs[@]"
11+
12+
cd "$WORKSPACE/ceph/"
13+
#run maintainer tool script over ceph repo
14+
$VENV/python "$WORKSPACE/ceph-maintainer-tool/maintainer-tool.py" src/pybind/mgr/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
- scm:
2+
name: maintainer-tool
3+
scm:
4+
- git:
5+
url: https://github.com/deepalik21/ceph-maintainer-tool.git
6+
branches:
7+
- origin/main
8+
browser: auto
9+
timeout: 20
10+
basedir: "ceph-maintainer-tool"
11+
wipe-workspace: false
12+
13+
- scm:
14+
name: ceph
15+
scm:
16+
- git:
17+
url: https://github.com/ceph/ceph.git
18+
timeout: 20
19+
wipe-workspace: false
20+
basedir: "ceph"
21+
branches:
22+
- origin/main
23+
24+
25+
- job:
26+
name: ceph-maintainer-tool
27+
description: Ceph maintainer tool
28+
project-type: freestyle
29+
block-downstream: false
30+
block-upstream: false
31+
defaults: global
32+
display-name: 'ceph-maintainer-tool'
33+
34+
triggers:
35+
# run every saturday at noon
36+
- timed: "0 12 * * 6"
37+
38+
scm:
39+
- maintainer-tool
40+
- ceph
41+
42+
builders:
43+
- shell:
44+
!include-raw:
45+
- ../../../scripts/build_utils.sh
46+
- ../../build/build

0 commit comments

Comments
 (0)