Skip to content

hughbrien/HelloWorldMaven

 
 

Repository files navigation

Hello World Maven for Interview

Hugh Brien

LinkedIn

Please see the assignment:

  1. Fix the job so it completes properly.
  2. Explain what the script is doing

Jenkins Job Description

This Jenkins job is doing the following:

Notes on Assisting Customers

  • Here are some good tips
  • Ensure your code / project will compile correctly in a local environment
  • If possible, it can be a good idea to "mirror" your environment with the customer environments. Especially for complex problems
  • Ensure all the commands invoked by your Jenkins agent/runtime are installed in your environment.
  • Ensure Jenkins has access via appropriate PATH variables
  • Ensure the CI/CD Environments are complete
  • Recommend ways to optimize and simplify the building process by using or NOT using specific plugins.

Actual Steps and Changes

  • Fixed pom.xml file so code would compile locally.
  • Updated Artifact Repository path
  • The demo software project will now build
  • mvn clean compile test deploy all work correctly.
  • Installed the "jq" command the server : brew install jq
  • Installed Sonar Scanner : brew install sonar-scanner
  • All the sh commands work.
  • Fixed Typo jq command "failsafeArgLine":"deploy",
  • Updated the last two Stages step so they would run correctly.
  • Here is the final Jenkins Build file
  • Here is the Success Log
  • Here is an image from Jenkins of the build

About

Testing a maven project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%