Initial commit
BIN
exercises/02-job-creation/solution/images/build-history.png
Normal file
|
After Width: | Height: | Size: 834 KiB |
BIN
exercises/02-job-creation/solution/images/build-with-params.png
Normal file
|
After Width: | Height: | Size: 744 KiB |
BIN
exercises/02-job-creation/solution/images/job-configuration.png
Normal file
|
After Width: | Height: | Size: 770 KiB |
BIN
exercises/02-job-creation/solution/images/job-in-folder.png
Normal file
|
After Width: | Height: | Size: 803 KiB |
BIN
exercises/02-job-creation/solution/images/job-in-view.png
Normal file
|
After Width: | Height: | Size: 801 KiB |
BIN
exercises/02-job-creation/solution/images/move-job.png
Normal file
|
After Width: | Height: | Size: 770 KiB |
BIN
exercises/02-job-creation/solution/images/new-folder.png
Normal file
|
After Width: | Height: | Size: 898 KiB |
BIN
exercises/02-job-creation/solution/images/new-freestyle-job.png
Normal file
|
After Width: | Height: | Size: 865 KiB |
BIN
exercises/02-job-creation/solution/images/new-view.png
Normal file
|
After Width: | Height: | Size: 755 KiB |
66
exercises/02-job-creation/solution/solution.md
Normal file
@@ -0,0 +1,66 @@
|
||||
# Solution
|
||||
|
||||
We'll start by creating the new freestyle job.
|
||||
|
||||

|
||||
|
||||
Configure the job as follows.
|
||||
|
||||

|
||||
|
||||
The build will ask for a parameter value when triggered.
|
||||
|
||||

|
||||
|
||||
The build history only stores the previous two builds.
|
||||
|
||||

|
||||
|
||||
Create a new view.
|
||||
|
||||

|
||||
|
||||
After adding the job to the view, it will show up in a separate tab.
|
||||
|
||||

|
||||
|
||||
Create a new folder.
|
||||
|
||||

|
||||
|
||||
The job became a child of the folder after moving it there.
|
||||
|
||||

|
||||
|
||||
Navigating to the `job` directory under the Jenkins Home reveals the build history.
|
||||
|
||||
```bash
|
||||
$ cd /Users/bmuschko/.jenkins/jobs/freestyle/jobs
|
||||
$ tree my-freestyle-job
|
||||
my-freestyle-job
|
||||
├── builds
|
||||
│ ├── 1
|
||||
│ │ ├── build.xml
|
||||
│ │ ├── changelog.xml
|
||||
│ │ └── log
|
||||
│ ├── 2
|
||||
│ │ ├── build.xml
|
||||
│ │ ├── changelog.xml
|
||||
│ │ └── log
|
||||
│ ├── 3
|
||||
│ │ ├── build.xml
|
||||
│ │ ├── changelog.xml
|
||||
│ │ └── log
|
||||
│ ├── lastFailedBuild -> -1
|
||||
│ ├── lastStableBuild -> 3
|
||||
│ ├── lastSuccessfulBuild -> 3
|
||||
│ ├── lastUnstableBuild -> -1
|
||||
│ ├── lastUnsuccessfulBuild -> -1
|
||||
│ └── legacyIds
|
||||
├── config.xml
|
||||
├── lastStable -> builds/lastStableBuild
|
||||
├── lastSuccessful -> builds/lastSuccessfulBuild
|
||||
└── nextBuildNumber
|
||||
|
||||
8 directories, 15 files
|
||||
```
|
||||