Jenkins Plugin

  • Download feature files before test run

  • Filter features to download based on mode (automated/manual/both), or/and JQL

  • Upload cucumber/karate json after the run to AssertThat - BDD & Cucumber for Jira plugin

Create credentials

Usage in Job

Download feature files:

 

Upload reports:

Usage in pipeline Job

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 pipeline { agent any stages { stage('Features') { steps { //Download feature files assertthatBddFeatures credentialsId: '10005', jiraServerUrl: 'https://assertthat-jira.com', jql: "project = DEMO AND key in ('DEMO-2')", mode: 'both', tags: '(@smoke or @ui) and (not @slow)', outputFolder: 'features', projectId: '10005', proxyPassword: '', proxyURI: '', proxyUsername: '' } } stage('Run tests') { steps { //Run tests here } } } post{ always{ //Upload test results assertthatBddReport(credentialsId: '10005', jiraServerUrl: '', jsonReportFolder: 'report', jsonReportIncludePattern: '**/*.json', projectId: '10005', runName: 'Smoke test run', type: 'karate') } }