Skip to main content

How to Pass Cucumber Tags in Jenkins

You can execute your Smoke or Regression suite by using Cucumber command line options along with Jenkins. You need to use Cucumber Dcucumber.options for that. Use below steps:

Step 1: Create New or Edit your existing Maven Project.

Step 2: Click on Configure

How to Pass Cucumber Tags in Jenkins

Step 2: Select checkbox This project is parameterized

cucumber tags jenkins

Step 3: Select Add Parameter -> Choice Parameter 

jenkins cucumber tags

Step 4: Give Name = Tags and Choices = smoke and regression [Do not use @ symbol, just specify name of the tag].

how to pass multiple cucumber tags in jenkins

Step 5: Specify Goals and Options and path of your pom.xml

cucumber jenkins integration

Step 6: Select Option and Build with Parameters 

How to Pass Cucumber Tags in Jenkins

Video Tutorial: How to pass multiple Cucumber tags in Jenkins

Submitted by tgoswami on August 31, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.