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

feat(chore): update .gitignore and remove deprecated scripts #437

Merged
merged 2 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
150 changes: 98 additions & 52 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# ingore local env files
.env.local

*.pb.cc
*.pb.h
*.so
*.swp
.idea
.vscode

CMakeCache.txt
CMakeFiles
CTest*.cmake
Makefile
.conan
sc979 marked this conversation as resolved.
Show resolved Hide resolved
Testing
__
broker_pb2.py
Expand All @@ -16,11 +19,11 @@ broker_pb2_grpc.py
broker_pb2_grpc.pyc
build
build_my_host
centreon-broker/core/inc/com/centreon/broker/database/table_max_size.hh
centreon-broker/core/inc/com/centreon/broker/vars.hh
centreon-broker/core/inc/com/centreon/broker/version.hh
doc/_build
doc/devel-doc
build_centos7
cbd
cbwd
cppcheck-build
cppcheck-report.txt
engine_pb2.py
engine_pb2.pyc
engine_pb2_grpc.py
Expand All @@ -31,65 +34,108 @@ libroker.a
librokerbase.a
tags
test-coverage
test/python/*.crt
test/python/*.key
ut
###

###
apps/
build/*

### node ###
node_modules/

### vscode ###
.vscode/
**/.vscode/
**/.idea
.scannerwork

### temp build files ###
logs/*

workspace.*

# ingore local env files
.env.local

src/config/centreon-engine/*.cfg


*.swp
**/.idea/*
**/.vscode/*
**/build/*
centreon-engine/conf/centengine.cfg
centreon-engine/conf/objects/*.cfg
centreon-engine/conf/resource.cfg
centreon-engine/doc/_build
centreon-engine/inc/com/centreon/engine/version.hh
centreon-engine/inc/compatibility/common.h
centreon-engine/inc/compatibility/locations.h
centreon-engine/scripts/centengine.pc
centreon-engine/scripts/centengine.sh
centreon-engine/src/simumod/neb.cc
centreon-engine/tags
centreon-engine/gtest.cbp
**/CMakeFiles/*
centreon-engine/cmake-build-debug/*
centreon-engine/modules/bench/passive/paths.hh
centreon-engine/enginerpc/engine.*pb.cc
centreon-engine/enginerpc/engine.*pb.h
**/*.swp
**/.*.swp
**/__pycache__/*
**/build/*
**/engine_pb2*.py
centreon-engine/benchmark/centreon-engine/*
centreon-engine/benchmark/log/*
centreon-engine/benchmark/lib/*
**/.*.swp
centreon-connectors/perl/src/xs_init.cc
centreon-connectors/perl/test/connector/paths.hh
centreon-connectors/ssh/test/connector/binary.hh
build/*
.idea/*
cmake-build-debug/*
centreon-clib/script/*
centreon-clib/inc/com/centreon/clib/version.hh

**/CMakeFiles/*
CMakeLists.txt.user
**/cmake-build-debug/*
CMakeCache.txt
cmake_install.cmake
CTest*.cmake
Makefile

log.html
output.xml
log.html
report.html

# bbdo
bbdo/*_accessor.hh

# broker
broker/core/inc/com/centreon/broker/database/table_max_size.hh
broker/core/inc/com/centreon/broker/vars.hh
broker/core/inc/com/centreon/broker/version.hh
broker/config/central-rrd.json
broker/config/central-broker.json
broker/config/central-module.json
broker/script/cbd.init
broker/script/watchdog.json
broker/script/misc/grpc/broker_pb2.py
broker/script/misc/grpc/broker_pb2_grpc.py
broker/libgtest*.a
broker/libnebbase.a
broker/libroker.a
broker/librokerbase.a
broker/test/python/*.crt
broker/test/python/*.key

#ci
ci/repo/*

# clib
clib/inc/com/centreon/clib/version.hh
clib/script/*

# connectors
connectors/perl/src/xs_init.cc
connectors/perl/test/connector/paths.hh
connectors/ssh/test/connector/binary.hh

# doc
**/doc/devel-doc
**/doc/_build

# engine
engine/benchmark/lib/*
engine/benchmark/log/*
engine/conf/centengine.cfg
engine/conf/timeperiods.cfg
engine/conf/commands.cfg
engine/conf/resource.cfg
engine/conf/objects/*.cfg
engine/doc/_build
engine/enginerpc/engine.*pb.cc
engine/enginerpc/engine.*pb.h
engine/gtest.cbp
engine/inc/com/centreon/engine/version.hh
engine/inc/compatibility/common.h
engine/inc/compatibility/locations.h
engine/modules/bench/passive/paths.hh
engine/scripts/centengine.pc
engine/scripts/centengine.sh
engine/src/simumod/neb.cc
engine/tags
engine/doc/devel-doc

# gorgone
gorgone/log

# tests
tests/apps/
tests/src/config/centreon-engine/*.cfg
tests/src/config/centreon-engine/config*/*
test/python/*.crt
test/python/*.key
tests/logs/*
79 changes: 0 additions & 79 deletions centreon-broker/.github/workflows/dependabot_jira.yml
Original file line number Diff line number Diff line change
@@ -1,79 +0,0 @@
name: Create Dependabot Ticket on Jira

on:
pull_request:
types: [ opened, reopened ]
branches: [ develop ]

permissions:
pull-requests: read

env:
JIRA_PROJECT_KEY: "MON"
JIRA_ISSUE_TYPE: "Technical"
COMPONENT_NAME: "${{ github.event.pull_request.base.repo.name }}"

jobs:
create_ticket:
name: Create Jira ticket on dependaBot PR
if: github.event.pull_request.user.id == 49699333
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV

- name: Check components name
id: name
if: ${{ env.COMPONENT_NAME == 'centreon'}}
run: echo "COMPONENT_NAME=centreon-web" >> $GITHUB_ENV

- name: debug
id: debug
run: echo "component is ${{ env.COMPONENT_NAME }}."

- name: Login to Jira
uses: atlassian/gajira-login@v2.0.0
id: login
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Create Jira Issue
uses: atlassian/gajira-create@v2.0.1
id: create
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
with:
project: ${{ env.JIRA_PROJECT_KEY }}
issuetype: ${{ env.JIRA_ISSUE_TYPE }}
summary: |
[${{ github.event.repository.name }}] - ${{ github.event.pull_request.title }}
description: |

{panel:title=Recommandation}
${{ github.event.pull_request.title }}
{panel}

More details are available in the *PR n°${{ github.event.pull_request.number }}*

Github link is: ${{ github.event.pull_request.html_url }}

{panel:title=CVSS details}
More details are available on snyk
{panel}

*Github Advisory*

fields:
'{
"customfield_10880": "Internal",
"customfield_10881": "Dependabot",
"customfield_10866": "${{ env.CURRENT_DATE }}",
"labels": ["Dependabot"],
"priority": {"name": "Highest"},
"components":[{"name": "${{ env.COMPONENT_NAME }}"}]
}'
35 changes: 0 additions & 35 deletions centreon-broker/.gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +0,0 @@
*.pb.cc
*.pb.h
*.so
*.swp
.idea
.vscode
CMakeCache.txt
CMakeFiles
CTest*.cmake
Makefile
Testing
__
build
cbd
cbwd
cmake-build-debug
cmake_install.cmake
core/inc/com/centreon/broker/database/table_max_size.hh
core/inc/com/centreon/broker/vars.hh
core/inc/com/centreon/broker/version.hh
deps.png
doc/_build
doc/devel-doc
libgtest*.a
libnebbase.a
libroker.a
librokerbase.a
script/misc/grpc/broker_pb2.py
script/misc/grpc/broker_pb2_grpc.py
tags
test-coverage
test/python/*.crt
test/python/*.key
ut
ut.xml
8 changes: 0 additions & 8 deletions centreon-clib/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
.*.swp
build/*
inc/com/centreon/clib/version.hh
script/centreon-clib.pc
CMakeLists.txt.user
deps.png
tags
.vscode
7 changes: 0 additions & 7 deletions centreon-connector/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
**/.*.swp
perl/src/xs_init.cc
perl/test/connector/paths.hh
ssh/test/connector/binary.hh
build/*
.idea/*
cmake-build-debug/*
1 change: 0 additions & 1 deletion centreon-connector/perl/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
build
26 changes: 0 additions & 26 deletions centreon-engine/.gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +0,0 @@
*.swp
**/.idea/*
**/.vscode/*
**/build/*
conf/centengine.cfg
conf/objects/*.cfg
conf/resource.cfg
doc/_build
inc/com/centreon/engine/version.hh
inc/compatibility/common.h
inc/compatibility/locations.h
scripts/centengine.pc
scripts/centengine.sh
src/simumod/neb.cc
tags
gtest.cbp
**/CMakeFiles/*
cmake-build-debug/*
modules/bench/passive/paths.hh
enginerpc/engine.*pb.cc
enginerpc/engine.*pb.h
**/__pycache__/*
**/engine_pb2*.py
benchmark/centreon-engine/*
benchmark/log/*
benchmark/lib/*
Loading