Jenkins - AndyStatic/Selenide-and-Jbehave GitHub Wiki
Download from https://jenkins.io/download/
Setup:
- java -jar E:\libs\jenkins.war
- http://localhost:8080/login?from=%2F
- .jenkins\secrets\initialAdminPassword
- Install Suggested Plugins
- Continue as admin
- Start using Jenkins
If you want to start jenkins with different port: java -jar E:\libs\jenkins.war httpPort=8082
System configuration:
- http://localhost:8080/configure
- 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
- E-mail Notification - repeat steps a-g
New Item:
- Enter an item name - ProjectTest
- Freestyle project
- OK
- 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
- Apply - Build
Build Triggers:
- Build periodically
- H 12 * * * (every day at 12)
From Git:
- Enter an item name - ProjectTest
- Freestyle project
- OK
- Source Code Management - Git
- Repository URL - https://github.com/AndyStatic/Selenide-and-Jbehave.git
- Add Credentials - Username with password
- Build: a) Execute Windows batch command b) mvn clean verify -D webdriver.chrome.driver=E:\libs\chromedriver.exe