Initial commit

This commit is contained in:
Benjamin Muschko
2019-11-17 16:40:48 -07:00
commit 248499c8f6
108 changed files with 994 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Exercise 9
This exercise explores the use of the REST API to trigger a build for an existing job. You will configure security features as necessary.
## Using the REST API for Common Operations
1. Create a new user named `buildbot`.
2. Add adminstration permissions for the user.
3. Log in with user `buildbot`.
4. Generate the API token for the user.
5. Generate a Jenkins crumb from the command line.
6. Export the environment variables `JENKINS_CRUMB` and `JENKINS_API_TOKEN` with the correct values.
7. Trigger a build of the job `gradle-initializr` with a `curl` command using the REST API.
8. Disable the job `gradle-initializr` with a `curl` command using the REST API.
9. Reenable the job `gradle-initializr` with a `curl` command using the REST API.
10. Download the Jenkins CLI client.
11. Trigger the build of the job `gradle-initializr` with a `curl` command using the Jenkins CLI.