From 3196abca24a38ffb25136b550ac21272ff110000 Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Fri, 9 Aug 2019 17:25:52 -0600 Subject: [PATCH] Minor corrections --- 02-job-creation.md | 4 ++-- 03-build-trigger-and-steps.md | 4 ++-- 06-notifications.md | 2 +- 07-artifacts.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/02-job-creation.md b/02-job-creation.md index fc1ae99..ecb1d4e 100644 --- a/02-job-creation.md +++ b/02-job-creation.md @@ -4,8 +4,8 @@ 1. From the dashboard, click the "New Item" button. 2. Enter the item name "my-freestyle-job" and select "Freestyle project". Press the "OK" button. -3. In the job configuration, define the option to only keep the last 2 builds. Provide the description "A simple freestyle job". Upon building the project, a String parameter named `message` should be provided. Press the "Save" button. -4. Trigger a new build by pressing the "Build with Parameters" button. Enter a value for the `message` parameter. The build should finish successfully. Locate the provided parameter value in the build information. +3. In the job configuration, define the option to only keep the last 2 builds. Provide the description "A simple freestyle job". Upon building the project, a String parameter named `MESSAGE` should be provided. Press the "Save" button. +4. Trigger a new build by pressing the "Build with Parameters" button. Enter a value for the `MESSAGE` parameter. The build should finish successfully. Locate the provided parameter value in the build information. 5. Run the build two more times. What do you see? 6. Create a new view named "test". Add the job to the view. 7. Create a new folder named "freestyle" as part of the view. Move the job into the folder. diff --git a/03-build-trigger-and-steps.md b/03-build-trigger-and-steps.md index 8dddc9b..7d64081 100644 --- a/03-build-trigger-and-steps.md +++ b/03-build-trigger-and-steps.md @@ -4,7 +4,7 @@ 1. Add a default value for the build parameter named `MESSAGE` e.g. `Hello World!`. 2. Create a build trigger that builds the project every minute. -3. Add a build step that executes the shell command `echo 'Message: $MESSAGE'`. The message is value of the parameter. +3. Add a build step that executes the shell command `echo "Message: $MESSAGE"`. The message is value of the parameter. 4. After a minute the first execution should have been triggered. Check the log output of the build and find the rendered message. 5. Create another freestyle project named `downstream-job` in the same folder. 6. Configure the initial job to execute the `downstream-job` if it was stable. @@ -27,7 +27,7 @@ Started by timer Running as SYSTEM Building in workspace /Users/bmuschko/.jenkins/workspace/freestyle/my-freestyle-job [my-freestyle-job] $ /bin/sh -xe /var/folders/02/3dgzjkqj4kz0g7lnrk0w93c00000gn/T/jenkins3548490840940668236.sh -+ echo 'Message: Hello World!' ++ echo "Message: Hello World!" Message: Hello World! Finished: SUCCESS ``` diff --git a/06-notifications.md b/06-notifications.md index 4186c0d..67c7e64 100644 --- a/06-notifications.md +++ b/06-notifications.md @@ -4,7 +4,7 @@ 1. Change the list of Gradle tasks to `doesnotexist` to emulate a failure. The build will fail as the task doesn't exist in the build script. 2. Install the Google Chat plugin. -3. Create a new chat room in Google Chat named `jenkins-test`. +3. Create a new chat room in Google Chat named `jenkins-test` at [https://chat.google.com/](https://chat.google.com/). 4. For the chat room configure the webhook. 5. Configure the job to send a notification whenever the job fails. Use the webhook generated on Google Chat. 6. Execute the build. The build should fail and send a notification to the chat room. diff --git a/07-artifacts.md b/07-artifacts.md index c8942cd..5368a4e 100644 --- a/07-artifacts.md +++ b/07-artifacts.md @@ -2,7 +2,7 @@ ## Storing and Fingerprinting Artifacts -1. Create a post-build action for archiving JAR file with the pattern `build/libs/*.jar`. +1. Create a post-build action for archiving JAR files with the pattern `build/libs/*.jar`. Enable the fingerprinting option. 2. Execute the build. The build should list the artifact `gradle-initializr-1.0.0.jar`. 3. Have a look at the recorded fingerprints of this build. 4. Render the MD5 hash of the artifact and the usage of the artifact.