Skip to content

Commit

Permalink
feat: added monitor for release jenkins agents
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Jul 7, 2023
1 parent 5e87713 commit b19a87a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release-ci.yml
@@ -0,0 +1,45 @@
name: "⚙️ Monitor Jenkins Release CI"
on:
schedule:
# Run every hour
- cron: "21 * * * *"

workflow_dispatch:

permissions:
contents: write
pull-requests: none
issues: write
packages: none

jobs:
security-scoring:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Jenkins Alert and Reporting
uses: UlisesGascon/jenkins-status-alerts-and-reporting@v1.3.0
id: jenkins-status-alerts-and-reporting
with:
database: monitor-release/database.json
jenkins-domain: 'ci.nodejs.org'
jenkins-username: ${{ secrets.JENKINS_RELEASE_USERNAME }}
jenkins-token: ${{ secrets.JENKINS_RELEASE_TOKEN }}
# Issues
generate-issue: true
issue-assignees: 'UlisesGascon'
issue-labels: 'potential-incident,release-ci'
create-issues-for-new-offline-nodes: false
auto-close-issue: true
disk-alert-level: 90
# Report
report: monitor-release/jenkins-report.md
report-tags-enabled: false
# Git changes
auto-commit: true
auto-push: true
github-token: ${{ secrets.GITHUB_TOKEN }}

# - name: Print the Computers
# run: |
# echo '${{ steps.jenkins-status-alerts-and-reporting.outputs.computers }}'
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -7,3 +7,9 @@ This is a experimental Repository that uses [Jenkins status alerts and reporting

- [Report](monitor/jenkins-report.md)
- [Database](monitor/database.json)


### Release

- [Report](monitor-release/jenkins-report.md)
- [Database](monitor-release/database.json)
Empty file added monitor-release/database.json
Empty file.
Empty file.

0 comments on commit b19a87a

Please sign in to comment.