Compare commits
3 Commits
training-2
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1330fe54c | ||
|
|
2efe6403bf | ||
|
|
4c2808ac61 |
@@ -6,7 +6,7 @@ In this exercise, you will configure the job to build based on a cron definition
|
||||
|
||||
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. On Windows, you have to execute a Windows batch command.
|
||||
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.
|
||||
@@ -1,10 +1,10 @@
|
||||
# Exercise 4
|
||||
|
||||
In this exercise, you will create a new job that pulls the source code from a repository on GitHub. Upon triggering a build, the job will execute a Gradle build.
|
||||
In this exercise, you will create a new job that pulls the source code from a [repository on GitHub](https://github.com/bmuschko/gradle-initializr) named Gradle Initializr. Upon triggering a build, the job will execute a Gradle build.
|
||||
|
||||
## Configuring a GitHub Repository
|
||||
|
||||
1. Create a new freestyle job named `gradle-initializr`.
|
||||
2. Configure Git as the SCM and use the repository URL `git@github.com:bmuschko/gradle-initializr.git`. Only build from the branch `master`.
|
||||
3. Add a build step to run the Gradle command `clean build` using the Wrapper.
|
||||
2. Configure Git as the SCM and use the repository URL `https://github.com/bmuschko/gradle-initializr.git`. Only build from the branch `master`.
|
||||
3. Add a build step "Invoke Gradle script" to run the Gradle command `clean build` using the Wrapper.
|
||||
4. Trigger a build and look at the output.
|
||||
Reference in New Issue
Block a user