diff --git a/ceph-maintainer-tool/build/build b/ceph-maintainer-tool/build/build new file mode 100644 index 000000000..f63b97cfe --- /dev/null +++ b/ceph-maintainer-tool/build/build @@ -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/ \ No newline at end of file diff --git a/ceph-maintainer-tool/config/definitions/ceph-maintainer-tool.yml b/ceph-maintainer-tool/config/definitions/ceph-maintainer-tool.yml new file mode 100644 index 000000000..32b04ab77 --- /dev/null +++ b/ceph-maintainer-tool/config/definitions/ceph-maintainer-tool.yml @@ -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