Giter VIP home page Giter VIP logo

jenkinsmaven's Introduction

JenkinsMaven

Maven project to help learn Jenkins.

Running tests on Jenkins

  • Install Jenkins.
    • To install Jenkins. I downloaded it from this link
    • The Jenkins that I installed required a different JDK than the onw I had. I downloaded OpenJDK from RedHat

Make Maven Project in Jenkins

Set up Maven in Jenkins

  • Log onto Jenkins
  • Click on Manage Jenkins
  • Click on Manage Plugins
  • Download and install Unleash Maven Plugin if it has not already been installed
  • Download and install Maven. If you are using a Windows Computer please download the Binary tar.gz file.
  • Extract apache-maven-X.X.X. These 'X's can be any number. They tell the version of maven installed. For me it was 3.6.3 from Binary tar.gz. I used 7zip to do this.
  • Click on Manage Jenkins again
  • Click on Global Tool Configuration
  • Add Maven
  • I unchecked Install Automatically and instead directly specified the path to the file, apache-maven-3.6.3, which I extracted from the Maven Binary rar.gz file.

Make Maven Project

  • You can learn how to do that here and here

  • Go to your home page in Jenkins. You can do that by clicking Jenkins at around the top left corner of screen

  • Click New Item

  • Enter your item name and click Maven Project. Please then click ok.

  • Check GitHub Project. For the project url type or paste https://github.com/axb157030/JenkinsMaven.git/ or whichever the url is for this git repository.

  • For Source Code Management Click the radio button near Git.

  • For the Repository Url, type or paste https://github.com/axb157030/JenkinsMaven.git/ or whichever the url is for this git repository.

  • For the Branch Specifier, type or past */main

  • For the Build Triggers check 'Build whenever a SNAPSHOT dependency is built' and 'GitHub hook trigger for GITScm polling'

  • For the build environment please check Delete workspace before build starts

  • For the Build, type or paste pom.xml for the Root POM, and for goals and options type clean test.

  • Click Save

I hope this helps

jenkinsmaven's People

Contributors

axb157030 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.