-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b467b64
commit 710e599
Showing
1 changed file
with
3 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |