Skip to content

Jenkins

AndyStatic edited this page Mar 11, 2019 · 8 revisions

Download from https://jenkins.io/download/

Setup:

  1. java -jar E:\libs\jenkins.war
  2. http://localhost:8080/login?from=%2F
  3. .jenkins\secrets\initialAdminPassword
  4. Install Suggested Plugins
  5. Continue as admin
  6. Start using Jenkins

If you want to start jenkins with different port: java -jar E:\libs\jenkins.war httpPort=8082

System configuration:

  1. http://localhost:8080/configure
  2. Extended E-mail Notification: a) SMTP server - smtp.gmail.com b) Default user E-mail suffix - @gmail.com c) Advanced d) Use SMTP Authentication - true e) add login/password f) Use SSL - true g) SMTP port - 465
  3. E-mail Notification - repeat steps a-g

New Item:

  1. Enter an item name - ProjectTest
  2. Freestyle project
  3. OK
  4. Build - Invoke top-level Maven targets a) Goals - clean verify b) POM - C:\Users\Andrejs K\IdeaProjects\jbehave\pom.xml c) Properties - webdriver.chrome.driver=E:\libs\chromedriver.exe AND serenity.outputDirectory=E:\libs\results
  5. Apply - Build

Build Triggers:

  1. Build periodically
  2. H 12 * * * (every day at 12)

From Git:

  1. Enter an item name - ProjectTest
  2. Freestyle project
  3. OK
  4. Source Code Management - Git
  5. Repository URL - https://github.com/AndyStatic/Selenide-and-Jbehave.git
  6. Add Credentials - Username with password
  7. Build: a) Execute Windows batch command b) mvn clean verify -D webdriver.chrome.driver=E:\libs\chromedriver.exe

Clone this wiki locally