Jenkins Configurations - Linux


Jenkins Configurations - Linux



  • Install Git
    • yum install git
  • Install Java
  • Install Maven
    • sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
    • sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
    • sudo yum install -y apache-maven
    • mvn --version

  • Jenkins Get Started
    • Get jenkins Admin Password
      • cd /var/lib/jenkins/secrets
      • cat initialAdminPassword







  • Install needed Plugins


  • Create Admin User and Get Started
  • Install Plugins: Maven Integration, Github Integration, TestNG Results.
  • Create new jobs by selecting Maven project


  • In build section
    • Root POM
      • /var/lib/jenkins/jobs/Automation/workspace/pom.xml
    • Goals and Options
      • clean test -DxmlPath=/var/lib/jenkins/jobs/Automation/workspace/src/test/java/runners




























Comments

Popular posts from this blog

How to Customize TestNG Emailable Report ?

Handling Selenium Grid Exceptions

Add customized jar as Maven Dependency