Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar-Karimov committed May 1, 2024
1 parent b467b64 commit 710e599
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
name: Trigger Jenkins Job

on:
# Trigger the workflow on push events to the main branch or manual dispatch.
push:
branches:
- main
workflow_dispatch:

jobs:
trigger:
name: Trigger Jenkins Build
name: Build
runs-on: ubuntu-latest

steps:
# Debugging: Check if secrets are correctly passed.
- name: Debug Secrets
run: |
echo "Jenkins URL: ${{ secrets.URL }}"
echo "Jenkins User: ${{ secrets.USER }}"
echo "Jenkins Job: ${{ secrets.JOBS }}"
# Actual Jenkins trigger step
- name: Trigger Jenkins Job
uses: appleboy/jenkins-action@master
with:
url: ${{ secrets.URL }}
user: ${{ secrets.USER }}
token: ${{ secrets.TOKEN }}
job: ${{ secrets.JOBS }}
debug: true # Enable debugging information
job: ${{ secrets.JOBS }}

0 comments on commit 710e599

Please sign in to comment.