-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update Jenkins configuration and job parameters
- Update Jenkins action version to `v1.1.1` - Change Jenkins URL and user credentials - Rename job names and add `insecure` parameter - Add a step to set a random word using OpenSSL - Add parameters to trigger Job with parameters - Correct parameter name from `parameter` to `parameters` in README and action.yml Signed-off-by: appleboy <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
14 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 |
---|---|---|
|
@@ -5,19 +5,26 @@ jobs: | |
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: trigger single Job | ||
uses: appleboy/jenkins-action@master | ||
- name: trigger Job without parameters | ||
uses: appleboy/jenkins-action@v1.1.1 | ||
with: | ||
url: "http://example.com" | ||
user: "example" | ||
url: https://jenkins.com | ||
user: jenkins | ||
token: ${{ secrets.TOKEN }} | ||
job: "foobar" | ||
job: AIDE_TEST | ||
insecure: true | ||
|
||
- name: trigger multiple Job | ||
uses: appleboy/jenkins-action@master | ||
- name: set random word | ||
id: random-word | ||
run: | | ||
echo TEST1234=$(openssl rand -hex 12) >> $GITHUB_OUTPUT | ||
- name: trigger Job with parameters | ||
uses: appleboy/[email protected] | ||
with: | ||
url: "http://example.com" | ||
user: "example" | ||
url: https://jenkins.com | ||
user: jenkins | ||
token: ${{ secrets.TOKEN }} | ||
job: "job_1,job_2" | ||
insecure: "true" | ||
job: AIDE_TEST2 | ||
insecure: true | ||
parameters: parameter01=${{ steps.random-word.outputs.TEST1234 }} |
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
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