Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding jenkins job for maintainer tool #2068

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ceph-maintainer-tool/build/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# the following two methods exist in scripts/build_utils.sh
pkgs=( "python-ldap" )
TEMPVENV=$(create_venv_dir)
VENV=${TEMPVENV}/bin

install_python_packages $TEMPVENV "pkgs[@]" "pip==22.0.4"

cd "$WORKSPACE/ceph/"
#run maintainer tool script over ceph repo
$VENV/python "$WORKSPACE/ceph-maintainer-tool/maintainer-tool.py" src/pybind/mgr/
47 changes: 47 additions & 0 deletions ceph-maintainer-tool/config/definitions/ceph-maintainer-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
- scm:
name: maintainer-tool
scm:
- git:
url: https://github.com/deepalik21/ceph-maintainer-tool.git
branches:
- origin/main
browser: auto
timeout: 20
basedir: "ceph-maintainer-tool"
wipe-workspace: false

- scm:
name: ceph
scm:
- git:
url: https://github.com/ceph/ceph.git
timeout: 20
wipe-workspace: false
basedir: "ceph"
branches:
- origin/main


- job:
name: ceph-maintainer-tool
description: Ceph maintainer tool
project-type: freestyle
block-downstream: false
block-upstream: false
defaults: global
display-name: 'ceph-maintainer-tool'
node: trusty && small

triggers:
# run every saturday at noon
- timed: "0 12 * * 6"

scm:
- maintainer-tool
- ceph

builders:
- shell:
!include-raw:
- ../../../scripts/build_utils.sh
- ../../build/build