Minor corrections

This commit is contained in:
Benjamin Muschko
2019-08-09 17:25:52 -06:00
parent 31ca9ff3c7
commit 3196abca24
4 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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
```

View File

@@ -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.

View File

@@ -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.