jenkins pipeline
Jenkins is
1) Open source automation server
2) Helps to automate the non-human part of
the software development process
3) Allows continuous integration
5) In my company Port is 8081 localhost
To run my project in Jenkins
1) I need to Login Jenkins account
2) I need to Create freestyle project
3) after that Install plugins -cucumber report and git
4) Under source code management I choose git and past git url
5) I Build trigger and I choose to build periodically
6) Invoke top-level maven
1. Maven version; MAVEN_HOME
2. Goals; clean verify -
Drunner=smoke_runner.xml
7) Under post-build actions
1. Choose cucumber reports
2. Choose editable email notify
8) Editable email notification
1. Attach build log; choose build log
2. Click advanced settings
9) Failure-Any
1. Click advanced
2. Recipient list - email address who will
receive the report. Add comma if multiple
3. Click add trigger - like failure always
4. Attach build log; select attach build log
5. Save
10) Final Step
1. Click build now and test will run and
gives your cucumber report
5
2
- mvn verify -Dbrowser=chrome --> to run with chrome
- mvn verify -Dcucumber.options="--tags @smoke"
mvn clean ==> delete target folder
- mvn clean test ==> delete target folder
and run cucumber tests
- mvn clean verify ==> delete target folder, run cucumber test,
generate cucumber HTML report
- mvn clean verify -P Regression ==> delete target folder,
run Regression profile in pom.xml.
- mvn verify -Dfile = RegressionRunner.java ==>
runs this specific runner class
- mvn install -DskipTests ==> It will skip all tests
- mvn -Dtest=login test ==> Running a Single Test Class:
It will run only login test class
- mvn verify -Dbrowser=firefox --> to run with firefox
-Denv="QA2" --> provide scenarios that you want to run.
No need to change CucumberRunner class.
It overrides runner class configuration.
Thank you!
2
0
4
4
Jenkins is
1) Open source automation server
2) Helps to automate the non-human part of
the software development process
3) Allows continuous integration
5) In my company Port is 8081 localhost
To run my project in Jenkins
1) I need to Login Jenkins account
2) I need to Create freestyle project
3) after that Install plugins -cucumber report and git
4) Under source code management I choose git and paste git url
5) I Build trigger and I choose to build periodically
6) Invoke top-level maven
2. Goals; clean verify -
Drunner=smoke_runner.xml
7) Under post-build actions
1. Choose cucumber reports
2. Choose editable email notify
8) Editable email notification
1. Attach build log; choose build log
2. Click advanced settings
9) Failure-Any
1. Click advanced
2. Recipient list - email address who will
receive the report. Add comma if multiple
3. Click add trigger - like failure always
4. Attach build log; select attach build log
5. Save
10) Final Step
1. Click build now and test will run and
gives your cucumber report
Thank you!
4
0
3.8
5
Pipeline is a set of processes that take
the code from version control and compile,
build, test and deploy to
production in automated fashion.
• The pipeline breaks down the software
delivery process into stages.
Each stage is made of different tasks
which can be carried out in parallel.
When all tasks in a stage passes, next stage is triggered
Thank you!
5
0
Are there any code examples left?
New code examples in category Other
-
Other 2023-03-27 22:50:10 how to select the whole line in vscode with keyboard shortcut
-
Other 2022-03-27 22:45:24 income of a web developer
-
Other 2022-03-27 22:35:01 \pyrcc_main.py: File does not exist 'resources.qrc'
-
Other 2022-03-27 22:30:45 rick roll embed code
-
Other 2022-03-27 22:20:08 Circuit_04_Potentiometer
-
Other 2022-03-27 22:20:05 iterative power
-
Other 2022-03-27 22:15:11 flutter run all
-
Other 2022-03-27 22:10:05 when is karlson release
-
Other 2022-03-27 22:10:02 wp .htaccess example
-
Other 2022-03-27 22:00:08 bash pause in file read line by line