|
|
4 years ago | |
|---|---|---|
| .github | 4 years ago | |
| src | 4 years ago | |
| .gitignore | 4 years ago | |
| 03_01.md | 4 years ago | |
| CONTRIBUTING.md | 4 years ago | |
| LICENSE | 4 years ago | |
| MAC_LINUX_DOCKER.md | 4 years ago | |
| NOTES.md | 4 years ago | |
| NOTICE | 4 years ago | |
| README.md | 4 years ago | |
| WINDOWS.md | 4 years ago | |
| pom.xml | 4 years ago | |
You will need to configure Maven as a global build tool.
In the Jenkins web interface, go to:
Manage Jenkins -> Global Tool Configuration -> Maven installations -> Add Maven.
Give your Maven installation a name and check the option to Install automatically.
Create a freestyle job and configure it as follows:
Source Code Management, select Git and enter the following URL:https://github.com/LinkedInLearning/learning-jenkins-3003221
Branch Specifier to */03_01.Invoke Top-Level Maven Target.package.Select the Execute Windows batch command build step
java -cp target/hello-1.0-SNAPSHOT.jar com.learningjenkins.App
Save the job and start the build.
Follow this link for more details on Windows
Select the Execute shell build step.
java -cp target/hello-1.0-SNAPSHOT.jar com.learningjenkins.App
Save the job and start the build.
Follow this link for more details on MacOS, Linux, and Docker
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
This error means you have probably entered the wrong branch under Source Code Management. You need to enter */03_01 for the branch.