From a30a40c2a5221cda8ec7a2a21a99ffd67e005f10 Mon Sep 17 00:00:00 2001 From: Michael Jenkins Date: Thu, 30 Sep 2021 23:53:39 -0700 Subject: [PATCH] Add steps for configuring git --- 03_01.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/03_01.md b/03_01.md index bd3069f..c35c4e9 100644 --- a/03_01.md +++ b/03_01.md @@ -12,14 +12,19 @@ Give your Maven installation a name and check the option to `Install automatical # Setting up the Jenkins Job Create a freestyle job and configure it as follows: -1. Add a build step using `Invoke Top-Level Maven Target`. -2. For the goal, enter `package`. -3. Add a build step to run the compiled package: +1. Under `Source Code Management`, select `Git` and enter the following URL: +``` +https://github.com/managedkaos/apache-maven-hello-world +``` +2. *MAKE SURE TO SET THE `Branch Specifier` to `*/main`*. +3. Add a build step using `Invoke Top-Level Maven Target`. +4. For the goal, enter `package`. +5. Add a build step to run the compiled package: - *FOR WINDOWS*: Use the `Execute Windows batch command` build step - FOR macOS, Linux, and Docker: Use the `Execute shell` build step -4. Enter the following command: +6. Enter the following command: ``` java -cp target/hello-1.0-SNAPSHOT.jar com.learningjenkins.App ``` -5. Save the job and start a build. +7. Save the job and start a build.