3 Commits

Author SHA1 Message Date
Benjamin Muschko
4c2808ac61 Change from git to https protocol 2020-03-04 14:33:00 -07:00
Benjamin Muschko
95810e5df8 Add link 2020-01-17 12:07:54 -07:00
Benjamin Muschko
a691367c4d Add more resources 2020-01-14 17:51:41 -07:00
2 changed files with 12 additions and 3 deletions

View File

@@ -10,4 +10,13 @@ All exercises in this repository practice a self-contained portion of the [CJE c
## Exercises
All [exercises](./exercises) are numbered and live in dedicated directories starting with the name `exercise-`. You'll find instructions for each exercise in each folder. Solutions are available in the `solution` folder. Try to solve each exercise yourself before having a look at the solution.
All [exercises](./exercises) are numbered and live in dedicated directories starting with the name `exercise-`. You'll find instructions for each exercise in each folder. Solutions are available in the `solution` folder. Try to solve each exercise yourself before having a look at the solution.
## Additional Resources
* [CloudBees certification information](https://www.cloudbees.com/jenkins/certification)
* [Certified Jenkins Engineer (CJE) 2018 study guide](https://www.previous.cloudbees.com/sites/default/files/cje-study-guide-2018.pdf)
* [CJE video training by CloudBees University](https://standard.cbu.cloudbees.com/series/certified-jenkins-engineer-exam-prep)
* [CJE video training and practice test by Linux Academy](https://linuxacademy.com/course/learn-jenkins-by-doing/)
* [Best practices for writing Jenkins shared libraries](https://bmuschko.com/blog/jenkins-shared-libraries/)
* [Step by step instructions on how to use the Jenkins Kubernetes plugin for different use cases](https://github.com/bmuschko/jenkins-with-kubernetes)

View File

@@ -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`.
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 to run the Gradle command `clean build` using the Wrapper.
4. Trigger a build and look at the output.